commit | b8c890035efd694daab5cdd71b5265c52c23fa81 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jun 19 18:35:34 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jun 19 18:35:34 2015 +0200 |
tree | 67d81fd318aa4862843c1d397788326707fb9e31 | |
parent | 01cf376da1726862afc8fa1d84cf5a773909fd0d [diff] [blame] |
patch 7.4.747 Problem: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) Solution: Reset the coladd field. (Hirohito Higashi)
diff --git a/src/quickfix.c b/src/quickfix.c index d4db0d2..463056b 100644 --- a/src/quickfix.c +++ b/src/quickfix.c
@@ -1841,6 +1841,9 @@ 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) { /*