commit | a84b10685c8f2c4cc1f7846fddae6b29bc4aee0f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Sep 13 13:34:02 2007 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Sep 13 13:34:02 2007 +0000 |
tree | a6d80a44ba047c2e1c9fc88700a01dc9751b26b9 | |
parent | 700d1d70363c6875aa07ffeeb5e0fbb7c4e2de35 [diff] [blame] |
updated for version 7.1-103
diff --git a/src/normal.c b/src/normal.c index 62b5f8c..65f7773 100644 --- a/src/normal.c +++ b/src/normal.c
@@ -8364,7 +8364,7 @@ n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP); /* Don't leave the cursor on the NUL past a line */ - if (curwin->w_cursor.col && gchar_cursor() == NUL) + if (n != FAIL && curwin->w_cursor.col > 0 && gchar_cursor() == NUL) { --curwin->w_cursor.col; cap->oap->inclusive = TRUE;