aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-01-30 14:42:06 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-01-30 14:42:06 +0100
commita984203bd6349a26042998db50b4efc90ae65751 (patch)
tree57967a712f3b5c81226ef5060872650585a129b8 /src/nvim/quickfix.c
parent7179f43666768ac81c0e5a350f57f53c2cc39c3c (diff)
downloadrneovim-a984203bd6349a26042998db50b4efc90ae65751.tar.gz
rneovim-a984203bd6349a26042998db50b4efc90ae65751.tar.bz2
rneovim-a984203bd6349a26042998db50b4efc90ae65751.zip
Fix linter errors.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 78b4312dc6..f3abf864fb 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -1607,13 +1607,11 @@ 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
- * line up to the error column. For each tab character
- * found, reduce the error column value by the length of
- * a tab character.
- */
+ 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) {