0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.4.147

Problem:    Cursor moves to wrong position when using "gj" after "$" and
            virtual editing is active.
Solution:   Make "gj" behave differently when virtual editing is active.
            (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2014-01-14 13:18:58 +01:00
parent 2cd3696c35
commit 6cd3aeee4c
4 changed files with 12 additions and 1 deletions

View File

@@ -4644,7 +4644,10 @@ nv_screengo(oap, dir, dist)
}
#endif
coladvance(curwin->w_curswant);
if (virtual_active() && atend)
coladvance(MAXCOL);
else
coladvance(curwin->w_curswant);
#if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)