* smart-insert-last-word problem
@ 2007-01-03 23:42 Paul Lew
2007-01-04 10:25 ` Vincent Lefevre
0 siblings, 1 reply; 2+ messages in thread
From: Paul Lew @ 2007-01-03 23:42 UTC (permalink / raw)
To: zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: smart-insert-last-word problem
2007-01-03 23:42 smart-insert-last-word problem Paul Lew
@ 2007-01-04 10:25 ` Vincent Lefevre
0 siblings, 0 replies; 2+ messages in thread
From: Vincent Lefevre @ 2007-01-04 10:25 UTC (permalink / raw)
To: zsh-workers
On 2007-01-03 15:42:42 -0800, Paul Lew wrote:
> 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...'
AFAIK, the last one is from Bart Schaefer on Sun, 15 Oct 2006 22:26:32 -0700
but I haven't had the time to try it yet.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-08 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03 23:42 smart-insert-last-word problem Paul Lew
2007-01-04 10:25 ` Vincent Lefevre
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).