about summary refs log tree commit diff
path: root/Src/Zle/zle_thingy.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-09-12 16:13:01 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-09-12 16:13:01 -0700
commit8e77fcb050ed09042cc2464f804ac023c0f88b42 (patch)
treed6215495fdbae83c181adda6b6bb7b2661dbfe16 /Src/Zle/zle_thingy.c
parent6ff0628182ac74bbf22dc02edcc9a148f12767db (diff)
downloadzsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.gz
zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.xz
zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.zip
36522: unmetafy the argument of "zle -U"
Diffstat (limited to 'Src/Zle/zle_thingy.c')
-rw-r--r--Src/Zle/zle_thingy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 7fd3a5941..da3a6d458 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -466,7 +466,7 @@ bin_zle_mesg(char *name, char **args, UNUSED(Options ops), UNUSED(char func))
 static int
 bin_zle_unget(char *name, char **args, UNUSED(Options ops), UNUSED(char func))
 {
-    char *b = *args, *p = b + strlen(b);
+    char *b = unmeta(*args), *p = b + strlen(b);
 
     if (!zleactive) {
 	zwarnnam(name, "can only be called from widget function");