about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-16 20:12:40 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-16 20:12:40 +0000
commitf2a2f28f7bde196cd1fa205ac0c20336046cf2cf (patch)
treefec9daea2f53a208cc9702aa1343169fdb38fdb6 /Src/lex.c
parentdb05cc51fa2298cf128e480d3ac8e5373029f6b9 (diff)
downloadzsh-f2a2f28f7bde196cd1fa205ac0c20336046cf2cf.tar.gz
zsh-f2a2f28f7bde196cd1fa205ac0c20336046cf2cf.tar.xz
zsh-f2a2f28f7bde196cd1fa205ac0c20336046cf2cf.zip
32413: turn off history word marking in cmd subst
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 96da1cbeb..6d45c70c7 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1922,6 +1922,7 @@ skipcomm(void)
 	new_lexbuf = lexbuf;
 
 	zcontext_save_partial(ZCONTEXT_LEX|ZCONTEXT_PARSE);
+	hist_in_word(1);
     } else {
 	/*
 	 * Set up for nested command subsitution, however
@@ -1992,6 +1993,7 @@ skipcomm(void)
 	tokstr = new_tokstr;
 	lexbuf = new_lexbuf;
 	lexstop = new_lexstop;
+	hist_in_word(0);
     }
 
     if (!lexstop)