aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-01-30 12:29:49 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-01-30 14:41:52 +0100
commit7179f43666768ac81c0e5a350f57f53c2cc39c3c (patch)
treeebeea58d9015dfd9ab77de31015bbd625f0e2b97 /src/nvim/quickfix.c
parent73234bfec6f9aa1741b30d19817284cd26392376 (diff)
downloadrneovim-7179f43666768ac81c0e5a350f57f53c2cc39c3c.tar.gz
rneovim-7179f43666768ac81c0e5a350f57f53c2cc39c3c.tar.bz2
rneovim-7179f43666768ac81c0e5a350f57f53c2cc39c3c.zip
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
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c1
1 files changed, 1 insertions, 0 deletions
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