1
0
forked from aniani/vim

updated for version 7.2-279

This commit is contained in:
Bram Moolenaar
2009-11-03 15:44:21 +00:00
parent 5b88ba47e8
commit a1381de5f3
3 changed files with 8 additions and 7 deletions

View File

@@ -156,7 +156,7 @@ coladvance2(pos, addspaces, finetune, wcol)
|| ((ve_flags & VE_ONEMORE) && wcol < MAXCOL)
#endif
;
line = ml_get_curline();
line = ml_get_buf(curbuf, pos->lnum, FALSE);
if (wcol >= MAXCOL)
{
@@ -332,9 +332,9 @@ coladvance2(pos, addspaces, finetune, wcol)
#endif
#ifdef FEAT_MBYTE
/* prevent cursor from moving on the trail byte */
/* prevent from moving onto a trail byte */
if (has_mbyte)
mb_adjust_cursor();
mb_adjustpos(pos);
#endif
if (col < wcol)