diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-01 02:49:27 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-01 02:49:27 -0500 |
commit | be1d5a61be3e75d4d2b15b76b2bb027605c70ff8 (patch) | |
tree | 292147ad917f6e0df65e32a078709cb850843397 /src/nvim/quickfix.c | |
parent | 59ef994f8f5fad9aaaa0e1d6eae3af66f6bb2630 (diff) | |
parent | 515b7e3effcab07f56d3e3ec74bdd2fae600aa10 (diff) | |
download | rneovim-be1d5a61be3e75d4d2b15b76b2bb027605c70ff8.tar.gz rneovim-be1d5a61be3e75d4d2b15b76b2bb027605c70ff8.tar.bz2 rneovim-be1d5a61be3e75d4d2b15b76b2bb027605c70ff8.zip |
Merge pull request #4129 from jbradaric/vim-7.4.745
vim-patch:7.4.{745,746,747,748}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 85c69af192..f3abf864fb 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1606,13 +1606,12 @@ win_found: } if (qf_ptr->qf_col > 0) { curwin->w_cursor.col = qf_ptr->qf_col - 1; - if (qf_ptr->qf_viscol == TRUE) { - /* - * Check each character from the beginning of the error - * line up to the error column. For each tab character - * found, reduce the error column value by the length of - * a tab character. - */ + curwin->w_cursor.coladd = 0; + if (qf_ptr->qf_viscol == true) { + // Check each character from the beginning of the error + // line up to the error column. For each tab character + // found, reduce the error column value by the length of + // a tab character. line = get_cursor_line_ptr(); screen_col = 0; for (char_col = 0; char_col < curwin->w_cursor.col; ++char_col) { |