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

Re: zsh v 2.6-beta13 bug



huyle@xxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> In 'bindkey -v' mode, if I do the '~' command on an empty line,
> the cursor moves up to the first cursor of the line before the current
> line.  Instead, nothing should happen.

I didn't see a patch for this; maybe I was asleep.

*** Src/zle_vi.c.swp	Mon Apr 15 07:33:47 1996
--- Src/zle_vi.c	Mon Apr 29 09:59:59 1996
***************
*** 742,748 ****
  	    line[cs] = tulower(line[cs]);
  	cs++;
      }
!     if (cs == eol)
  	cs--;
  }
  
--- 742,748 ----
  	    line[cs] = tulower(line[cs]);
  	cs++;
      }
!     if (cs == eol && cs)
  	cs--;
  }
  
-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




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