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:
@@ -4644,7 +4644,10 @@ nv_screengo(oap, dir, dist)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
coladvance(curwin->w_curswant);
|
if (virtual_active() && atend)
|
||||||
|
coladvance(MAXCOL);
|
||||||
|
else
|
||||||
|
coladvance(curwin->w_curswant);
|
||||||
|
|
||||||
#if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
|
#if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
|
||||||
if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)
|
if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)
|
||||||
|
@@ -52,6 +52,12 @@ ddppi333k0i222fyllvjfuUk
|
|||||||
G3o1234567892k05l2jr
|
G3o1234567892k05l2jr
|
||||||
G3o987652k02l2jr
|
G3o987652k02l2jr
|
||||||
G3o1234567892k05l2jr
|
G3o1234567892k05l2jr
|
||||||
|
G3o987652k02l2jr
|
||||||
|
:"
|
||||||
|
:" Test cursor position. When ve=block and Visual block mode and $gj
|
||||||
|
:set ve=block
|
||||||
|
:exe ":norm! 2k\<C-V>$gj\<Esc>"
|
||||||
|
:let cpos=getpos("'>")
|
||||||
:$put ='col:'.cpos[2].' off:'.cpos[3]
|
:$put ='col:'.cpos[2].' off:'.cpos[3]
|
||||||
:/^the/,$w >> test.out
|
:/^the/,$w >> test.out
|
||||||
:qa!
|
:qa!
|
||||||
|
Binary file not shown.
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
147,
|
||||||
/**/
|
/**/
|
||||||
146,
|
146,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user