summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2005-01-11 21:30:59 +0000
committervimboss <devnull@localhost>2005-01-11 21:30:59 +0000
commit9d7834422c05233a12c0fe4d603cfa544f1d2e38 (patch)
tree144fb1bd26831e3ea76c63980be266ac0057ee25 /src/search.c
parent13609f99863d7b1d55e70ec5288ded32fef70889 (diff)
downloadvim-9d7834422c05233a12c0fe4d603cfa544f1d2e38.tar.gz
updated for version 7.0037
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search.c b/src/search.c
index 1d1bc3b3..17dc5bd4 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3124,13 +3124,14 @@ current_word(oap, count, include, bigword)
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