Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
smart-insert-last-word problem
- X-seq: zsh-workers 23083
- From: Paul Lew <paullew@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: smart-insert-last-word problem
- Date: Wed, 3 Jan 2007 15:42:42 -0800
- Authentication-results: sj-dkim-1; header.From=paullew@xxxxxxxxx; dkim=pass ( sig from cisco.com/sjdkim1002 verified; );
- Dkim-signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1159; t=1167867764; x=1168731764; c=relaxed/simple; s=sjdkim1002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=paullew@xxxxxxxxx; z=From:=20Paul=20Lew=20<paullew@xxxxxxxxx> |Subject:=20smart-insert-last-word=20problem |Sender:=20; bh=dnQj77gaYMIyCK0dcD6IJmogAzm8FTg118aM7oUXwVc=; b=UkQquIez/03QIUz9gLGemzndIPePpil6VIyOKM4e2pR4LyB50COW54EXBqHWYXQ1hRHLqt47 mKZr+glZsviWYCGJvIyHup01mEnOzP71uPJHfK9XFTKD6LJqvkEFkDBW;
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author