From 1e70321fc104ec919cc1446f96b11dedae32a5bb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 19 Jun 2015 18:35:56 +0200 Subject: [PATCH] patch 7.4.747 Problem: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) Solution: Reset the coladd field. (Hirohito Higashi) --- src/quickfix.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/quickfix.c b/src/quickfix.c index d4db0d253d..463056b565 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -1841,6 +1841,9 @@ win_found: if (qf_ptr->qf_col > 0) { curwin->w_cursor.col = qf_ptr->qf_col - 1; +#ifdef FEAT_VIRTUALEDIT + curwin->w_cursor.coladd = 0; +#endif if (qf_ptr->qf_viscol == TRUE) { /* diff --git a/src/version.c b/src/version.c index 7fed16212c..4368036588 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 747, /**/ 746, /**/