summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-11 21:30:59 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-11 21:30:59 +0000
commit2a41f3a19f8212fd85c49d886ea7c67b0523a3a3 (patch)
tree144fb1bd26831e3ea76c63980be266ac0057ee25 /src
parent5f2bb9f5840d30028232d6187ead60a32b9ca592 (diff)
updated for version 7.0037
Diffstat (limited to 'src')
-rw-r--r--src/search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search.c b/src/search.c
index 1d1bc3b314..17dc5bd407 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