Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh crashes with floating point exception



Andy Spiegl wrote:
> lama:~>which backward-kill-line
> backward-kill-line () {
>         local scb=$CUTBUFFER
>         local slw=$LASTWIDGET
>         local sbl=${#BUFFER}
>         zle .backward-kill-line
>         (( $sbl == $#BUFFER )) && return
>         if [[ $slw = (.|)(backward-|)kill-* ]]
>         then
>                 killring=("${(@)killring[2,-1]}") 
>                 CUTBUFFER=$CUTBUFFER$scb 
>         fi
>         set-x-clipboard $CUTBUFFER
> }

Aha.  If, for whatever reason, that ends up setting "killring=()", then
the bug I spotted will trigger, with possible symptoms like the ones you
saw (it's system-dependent---some OSes won't care).  So there's a good
chance that was the correct fix.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author