Mercurial > vim
diff src/misc2.c @ 1099:2ec8266fa254 v7.0.225
updated for version 7.0-225
author | vimboss |
---|---|
date | Thu, 26 Apr 2007 08:54:21 +0000 |
parents | 25154b22dc96 |
children | 070f2ac50cf8 |
line wrap: on
line diff
--- 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