diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-06 10:36:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-06 10:36:08 +0000 |
commit | 5cc90eade5a54edd34cd2bf0087dfdb1b25056a1 (patch) | |
tree | f6179b59ead48f351233aed2da3ddaad7b547e26 /editors/vi.c | |
parent | fa06a770406f3c34abcbbf2454df44b1701fe634 (diff) | |
download | busybox-w32-5cc90eade5a54edd34cd2bf0087dfdb1b25056a1.tar.gz busybox-w32-5cc90eade5a54edd34cd2bf0087dfdb1b25056a1.tar.bz2 busybox-w32-5cc90eade5a54edd34cd2bf0087dfdb1b25056a1.zip |
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.
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index 57b011444..1932742ec 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | static const char vi_Version[] = | 21 | static const char vi_Version[] = |
22 | "$Id: vi.c,v 1.32 2004/02/04 11:19:44 andersen Exp $"; | 22 | "$Id: vi.c,v 1.33 2004/02/06 10:36:08 andersen Exp $"; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * To compile for standalone use: | 25 | * To compile for standalone use: |
@@ -1672,7 +1672,7 @@ static Byte find_range(Byte ** start, Byte ** stop, Byte c) | |||
1672 | // if we are at the next word's first char | 1672 | // if we are at the next word's first char |
1673 | // step back one char | 1673 | // step back one char |
1674 | // but check the possibilities when it is true | 1674 | // but check the possibilities when it is true |
1675 | if (dot > text && ((isspace(dot[0]) && !isspace(dot[0])) | 1675 | if (dot > text && ((isspace(dot[-1]) && !isspace(dot[0])) |
1676 | || (ispunct(dot[-1]) && !ispunct(dot[0])) | 1676 | || (ispunct(dot[-1]) && !ispunct(dot[0])) |
1677 | || (isalnum(dot[-1]) && !isalnum(dot[0])))) | 1677 | || (isalnum(dot[-1]) && !isalnum(dot[0])))) |
1678 | dot--; // move back off of next word | 1678 | dot--; // move back off of next word |