Mercurial > vim
diff src/search.c @ 96:8f25c0d2210f
updated for version 7.0037
author | vimboss |
---|---|
date | Tue, 11 Jan 2005 21:30:59 +0000 |
parents | e474bae3795f |
children | 8ecb0db93e9a |
line wrap: on
line diff
--- a/src/search.c +++ b/src/search.c @@ -3124,13 +3124,14 @@ current_word(oap, count, include, bigwor return FAIL; if (include != (cls() == 0)) { - if (fwd_word(1L, bigword, TRUE) == FAIL) + if (fwd_word(1L, bigword, TRUE) == FAIL && count > 1) return FAIL; /* * If end is just past a new-line, we don't want to include - * the first character on the line + * the first character on the line. + * Put cursor on last char of white. */ - if (oneleft() == FAIL) /* put cursor on last char of white */ + if (oneleft() == FAIL) inclusive = FALSE; } else