Skip to content

Commit 1e70321

Browse files
brammooldouglaskayama
authored andcommitted
patch 7.4.747 Problem: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) Solution: Reset the coladd field. (Hirohito Higashi)
1 parent 6f47c47 commit 1e70321

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/quickfix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,9 @@ qf_jump(qi, dir, errornr, forceit)
18411841
if (qf_ptr->qf_col > 0)
18421842
{
18431843
curwin->w_cursor.col = qf_ptr->qf_col - 1;
1844+
#ifdef FEAT_VIRTUALEDIT
1845+
curwin->w_cursor.coladd = 0;
1846+
#endif
18441847
if (qf_ptr->qf_viscol == TRUE)
18451848
{
18461849
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
747,
759761
/**/
760762
746,
761763
/**/

0 commit comments

Comments
 (0)