Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
6852:f538da3ee271 | 6853:d1a87b307a50 |
---|---|
1839 curwin->w_cursor.lnum = i; | 1839 curwin->w_cursor.lnum = i; |
1840 } | 1840 } |
1841 if (qf_ptr->qf_col > 0) | 1841 if (qf_ptr->qf_col > 0) |
1842 { | 1842 { |
1843 curwin->w_cursor.col = qf_ptr->qf_col - 1; | 1843 curwin->w_cursor.col = qf_ptr->qf_col - 1; |
1844 #ifdef FEAT_VIRTUALEDIT | |
1845 curwin->w_cursor.coladd = 0; | |
1846 #endif | |
1844 if (qf_ptr->qf_viscol == TRUE) | 1847 if (qf_ptr->qf_viscol == TRUE) |
1845 { | 1848 { |
1846 /* | 1849 /* |
1847 * Check each character from the beginning of the error | 1850 * Check each character from the beginning of the error |
1848 * line up to the error column. For each tab character | 1851 * line up to the error column. For each tab character |