summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-07-27 08:53:14 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-07-28 18:12:19 +0000
commit8d7b9d013ddb3f8f065ffc881f927cbe4790abef (patch)
tree97f0bd98cd27747d34fb9fb5b8e5a387ec0e2725
parent8e029323a76b48cdbeeb03045e2fc6348e2b060b (diff)
downloadzsh-8d7b9d013ddb3f8f065ffc881f927cbe4790abef.tar.gz
zsh-8d7b9d013ddb3f8f065ffc881f927cbe4790abef.zip
38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do.
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9153ff197..d650272ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2016-07-28 Daniel Shahaf <d.s@daniel.shahaf.name>
+ * 38927: Src/Zle/zle_main.c: zle-line-pre-redraw: Set $WIDGET
+ like other special widgets do.
+
* unposted: Functions/Misc/add-zle-hook-widget,
Functions/Misc/add-zsh-hook: Avoid $0 for POSIX_ARGZERO
compatibility.
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index ac31d4e09..9a83d4141 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1054,7 +1054,7 @@ void redrawhook(void)
args[0] = initthingy->nam;
args[1] = NULL;
incompfunc = 0;
- execzlefunc(initthingy, args, 0);
+ execzlefunc(initthingy, args, 1);
incompfunc = old_incompfunc;
unrefthingy(initthingy);
unrefthingy(lbindk);