From 7179f43666768ac81c0e5a350f57f53c2cc39c3c Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Sat, 30 Jan 2016 12:29:49 +0100 Subject: vim-patch:7.4.747 Problem: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) Solution: Reset the coladd field. (Hirohito Higashi) https://github.com/vim/vim/commit/b8c890035efd694daab5cdd71b5265c52c23fa81 --- src/nvim/quickfix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/quickfix.c') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 85c69af192..78b4312dc6 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1606,6 +1606,7 @@ win_found: } if (qf_ptr->qf_col > 0) { curwin->w_cursor.col = qf_ptr->qf_col - 1; + curwin->w_cursor.coladd = 0; if (qf_ptr->qf_viscol == TRUE) { /* * Check each character from the beginning of the error -- cgit