diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-04-26 08:54:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-04-26 08:54:21 +0000 |
commit | 87c199649156af12e70c2e0448d7102077f961cc (patch) | |
tree | 83de01c22f822af7b927abbbb42abaec7d38ee39 /src/misc2.c | |
parent | 63b9254b8e38329d98f5400339ec563abd953444 (diff) | |
download | vim-git-87c199649156af12e70c2e0448d7102077f961cc.tar.gz |
updated for version 7.0-225v7.0.225
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c index 14c4784cf..cdff6abad 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -516,7 +516,14 @@ check_cursor_col() || virtual_active()) curwin->w_cursor.col = len; else + { curwin->w_cursor.col = len - 1; +#ifdef FEAT_MBYTE + /* prevent cursor from moving on the trail byte */ + if (has_mbyte) + mb_adjust_cursor(); +#endif + } } #ifdef FEAT_VIRTUALEDIT |