mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
unposted: fix warn_create_global warnings in copy-earlier-word
This commit is contained in:
parent
11715a9cd8
commit
1b1712d065
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-07-07 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Functions/Zle/copy-earlier-word: avoid
|
||||
warnings from WARN_CREATE_GLOBAL.
|
||||
|
||||
* 25269: Frank Terbeck: Src/Zle/compcore.c
|
||||
|
||||
2008-07-06 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
# the current line.
|
||||
|
||||
emulate -L zsh
|
||||
setopt typesetsilent
|
||||
|
||||
typeset -g __copyword
|
||||
if (( ${NUMERIC:-0} )); then
|
||||
# 1 means last word, 2 second last, etc.
|
||||
(( __copyword = ${NUMERIC:-0} ))
|
||||
|
@ -15,7 +17,7 @@ elif [[ -n $__copyword && $WIDGET = $LASTWIDGET ]]; then
|
|||
(( __copyword-- ))
|
||||
elif [[ $LASTWIDGET = *insert-last-word ]]; then
|
||||
__copyword=-2
|
||||
__copywidget=$LASTWIDGET
|
||||
typeset -g __copywidget=$LASTWIDGET
|
||||
else
|
||||
__copyword=-1
|
||||
zstyle -s :$WIDGET widget __copywidget
|
||||
|
|
Loading…
Reference in a new issue