about summary refs log tree commit diff
path: root/Src/input.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-07-02 10:01:42 +0100
committerPeter Stephenson <pws@zsh.org>2015-07-02 10:01:42 +0100
commit2afdb3985aae08403e1e5ab6193cd67c695b6e2b (patch)
treee6c66c0eefef3309f34d7153c7ecfd5949edd99f /Src/input.c
parentdce1f33c02c855e9d5f588716d7e9ddaea3887ba (diff)
downloadzsh-2afdb3985aae08403e1e5ab6193cd67c695b6e2b.tar.gz
zsh-2afdb3985aae08403e1e5ab6193cd67c695b6e2b.tar.xz
zsh-2afdb3985aae08403e1e5ab6193cd67c695b6e2b.zip
35668: Improved fix for command/proc subst starting in alias.
Use input flag to suppress the unwanted backtracking.

Add test for the extra case covered.
Diffstat (limited to 'Src/input.c')
-rw-r--r--Src/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/input.c b/Src/input.c
index 4a5bf89c6..613f89a25 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -591,7 +591,7 @@ inpoptop(void)
 	     * history is before, but they're both pushed onto
 	     * the input stack.
 	     */
-	    if ((inbufflags & (INP_ALIAS|INP_HIST)) == INP_ALIAS)
+	    if ((inbufflags & (INP_ALIAS|INP_HIST|INP_RAW_KEEP)) == INP_ALIAS)
 		zshlex_raw_back();
 	}
     }