diff src/quickfix.c @ 6853:d1a87b307a50 v7.4.747

patch 7.4.747 Problem: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) Solution: Reset the coladd field. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Fri, 19 Jun 2015 18:35:34 +0200
parents e1d59836eecc
children 64e30831fa42
line wrap: on
line diff
--- 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)
 		{
 		    /*