aboutsummaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-03-06 09:51:16 +0000
committerPeter Stephenson <pws@zsh.org>2015-03-06 09:51:16 +0000
commit2f3547689cfc8b1b1bf4cbdbd7b3714e2ab1d0a2 (patch)
tree8bbe22b99a1ccb6e0350729c11134718e69c71bc /Src
parent00b3085b969f46370f7cde28e9dfa10026b884c7 (diff)
downloadzsh-2f3547689cfc8b1b1bf4cbdbd7b3714e2ab1d0a2.tar.gz
zsh-2f3547689cfc8b1b1bf4cbdbd7b3714e2ab1d0a2.tar.xz
zsh-2f3547689cfc8b1b1bf4cbdbd7b3714e2ab1d0a2.zip
34653: move aborted vared lines to ZLE_VARED_ABORTED
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index a2f48e13a..cec44c0ed 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1253,7 +1253,9 @@ zleread(char **lp, char **rp, int flags, int context, char *init, char *finish)
zlecore();
if (errflag)
- setsparam("ZLE_LINE_ABORTED", zlegetline(NULL, NULL));
+ setsparam((zlecontext == ZLCON_VARED) ?
+ "ZLE_VARED_ABORTED" :
+ "ZLE_LINE_ABORTED", zlegetline(NULL, NULL));
if (done && !exit_pending && !errflag)
zlecallhook(finish, NULL);