File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8220,6 +8220,11 @@ nv_g_cmd(cap)
82208220 i += ((curwin -> w_virtcol - width1 ) / width2 + 1 )
82218221 * width2 ;
82228222 coladvance ((colnr_T )i );
8223+
8224+ /* Make sure we stick in this column. */
8225+ validate_virtcol ();
8226+ curwin -> w_curswant = curwin -> w_virtcol ;
8227+ curwin -> w_set_curswant = FALSE;
82238228#if defined(FEAT_LINEBREAK ) || defined(FEAT_MBYTE )
82248229 if (curwin -> w_cursor .col > 0 && curwin -> w_p_wrap )
82258230 {
@@ -8228,7 +8233,6 @@ nv_g_cmd(cap)
82288233 * the end of the line. We do not want to advance to
82298234 * the next screen line.
82308235 */
8231- validate_virtcol ();
82328236 if (curwin -> w_virtcol > (colnr_T )i )
82338237 -- curwin -> w_cursor .col ;
82348238 }
Original file line number Diff line number Diff line change @@ -728,6 +728,8 @@ static char *(features[]) =
728728
729729static int included_patches [] =
730730{ /* Add new patch number below this line */
731+ /**/
732+ 7 ,
731733/**/
732734 6 ,
733735/**/
You can’t perform that action at this time.
0 commit comments