[BusyBox-cvs] busybox/editors vi.c,1.32,1.33

Erik Andersen andersen at busybox.net
Fri Feb 6 10:36:10 UTC 2004


Update of /var/cvs/busybox/editors
In directory nail:/tmp/cvs-serv24259/editors

Modified Files:
	vi.c 
Log Message:
Richard Kojedzinszky writes:

Hi All,

I aplogoize for the mistake, but i have just recognized that somehow the
last patch I sent in was wrong, and a '0' was instead of a '-1'. Because
of this, vi does behave the wrong way. So again, it should be the last
patch for vi. This is for pre7.



Index: vi.c
===================================================================
RCS file: /var/cvs/busybox/editors/vi.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- vi.c	4 Feb 2004 11:19:44 -0000	1.32
+++ vi.c	6 Feb 2004 10:36:08 -0000	1.33
@@ -1672,7 +1672,7 @@
  		// if we are at the next word's first char
  		// step back one char
  		// but check the possibilities when it is true
- 		if (dot > text && ((isspace(dot[0]) && !isspace(dot[0]))
+		if (dot > text && ((isspace(dot[-1]) && !isspace(dot[0]))
  				|| (ispunct(dot[-1]) && !ispunct(dot[0]))
  				|| (isalnum(dot[-1]) && !isalnum(dot[0]))))
   			dot--;		// move back off of next word




More information about the busybox-cvs mailing list