about summary refs log tree commit diff
path: root/Src/input.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-11-13 16:45:36 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-11-13 16:45:36 +0000
commitaf7eba0c848d12629d41be991467d35a902a9e66 (patch)
tree2f737d3e4c643d77bd7d79874fbb998ef8803fa7 /Src/input.c
parent2d241d0ff9f26f75d5923d896bd30c61b189b099 (diff)
downloadzsh-af7eba0c848d12629d41be991467d35a902a9e66.tar.gz
zsh-af7eba0c848d12629d41be991467d35a902a9e66.tar.xz
zsh-af7eba0c848d12629d41be991467d35a902a9e66.zip
merge back changes from 4.1
Diffstat (limited to 'Src/input.c')
-rw-r--r--Src/input.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Src/input.c b/Src/input.c
index 525a3202a..bf31c09cf 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -540,3 +540,17 @@ inpop(void)
 	inpoptop();
     } while (remcont);
 }
+
+/*
+ * Expunge any aliases from the input stack; they shouldn't appear
+ * in the history and need to be flushed explicitly when we encounter
+ * an error.
+ */
+
+/**/
+void
+inpopalias(void)
+{
+    while (inbufflags & INP_ALIAS)
+	inpoptop();
+}