commit | 5fe6bdf858a7f2f288d599ffb5efb3c08449c817 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Dec 05 17:22:12 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Dec 05 17:22:12 2017 +0100 |
tree | 06d28d0ae034a699ccd44176ef6f5a61d0854e5f | |
parent | 3767c6e9ee1bd585a2afba7e932854b24d194a2d [diff] [blame] |
patch 8.0.1374: CTRL-A does not work with an empty line Problem: CTRL-A does not work with an empty line. (Alex) Solution: Decrement the end only once. (Hirohito Higashi, closes #2387)
diff --git a/src/ops.c b/src/ops.c index e366903..0209334 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -5433,7 +5433,7 @@ } else /* oap->motion_type == MCHAR */ { - if (!oap->inclusive) + if (pos.lnum == oap->start.lnum && !oap->inclusive) dec(&(oap->end)); length = (colnr_T)STRLEN(ml_get(pos.lnum)); pos.col = 0;