mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-31 18:10:56 +01:00
unposted: Use typeset -g in insert-unicode-char
Avoid warning from WARN_NESTED_VAR if set.
This commit is contained in:
parent
ed4e37e45c
commit
ab6f30350a
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2017-05-02 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* unposted: Functions/Zle/insert-unicode-char: use typeset -g to
|
||||
avoid warnnestedvar warning.
|
||||
|
||||
2017-04-28 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 41020: Src/exec.c, Test/A01grammar.ztst: "command -p" was
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ then
|
|||
local -i 16 -Z 10 arg=$NUMERIC
|
||||
# ...and use print to turn this into a Unicode character.
|
||||
LBUFFER+="$(print -n "\U${arg##0x}")"
|
||||
_insert_unicode_ready=0
|
||||
integer -g _insert_unicode_ready=0
|
||||
else
|
||||
# Set the base to 16...
|
||||
zle argument-base 16
|
||||
# ...wait for user to type hex keys then call this widget again.
|
||||
zle universal-argument
|
||||
_insert_unicode_ready=1
|
||||
integer -g _insert_unicode_ready=1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue