From: Paul Lew <paullew@cisco.com>
To: zsh-workers@sunsite.dk
Subject: smart-insert-last-word problem
Date: Wed, 3 Jan 2007 15:42:42 -0800 [thread overview]
Message-ID: <17820.16242.848823.730831@cns-build4.cisco.com> (raw)
Can someone email me a copy of the latest smart-insert-last-word? My
version copied off the mailing list exhibit problem:
smart-insert-last-word:108: bad math expression: operator expected at
`Account fo...'
The segment looks like:
94 # This is the "smart" part -- search right-to-left and
95 # latest-to-earliest through the history for a word.
96 integer n=0 found=$lastcmd[(I)$pattern]
97 if zstyle -t :$WIDGET auto-previous
98 then
99 while (( found == 0 && ++n ))
100 do
101 zle .up-history || return 1
102 buffer=$history[$HISTNO]
103 lastcmd=( ${${(z)buffer}:#\;} )
104 found=$lastcmd[(I)$pattern]
105 done
106 fi
107 (( found-- > 0 && # Account for 1-based index
108 (numeric = $#lastcmd - found) ))
109 fi
Moving the '# Account for 1-based index' to a line above generates
different error:
No such widget `auto-suffix-retain'
Are there new widget to download? BTW, I am using 4.3.2
TIA.
next reply other threads:[~2007-01-03 23:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 23:42 Paul Lew [this message]
2007-01-04 10:25 ` Vincent Lefevre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17820.16242.848823.730831@cns-build4.cisco.com \
--to=paullew@cisco.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).