diff options
author | Ihor Antonov <ngortheone@gmail.com> | 2019-07-19 11:49:43 -0400 |
---|---|---|
committer | Ihor Antonov <ngortheone@gmail.com> | 2019-07-19 12:31:34 -0400 |
commit | f42bb50392b948739de6dd8ff5890a9cec0168be (patch) | |
tree | 94678a502dcf5b312d1dd1769709ba6ee679ca66 | |
parent | f1127a33f103524d5f8859026cb56e59872fceb1 (diff) | |
download | rneovim-f42bb50392b948739de6dd8ff5890a9cec0168be.tar.gz rneovim-f42bb50392b948739de6dd8ff5890a9cec0168be.tar.bz2 rneovim-f42bb50392b948739de6dd8ff5890a9cec0168be.zip |
lint
-rw-r--r-- | src/nvim/screen.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 401e56c137..bf2342a0cf 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -4045,14 +4045,15 @@ win_line ( } } - /* advance to the next 'colorcolumn' */ - if (draw_color_col) + // advance to the next 'colorcolumn' + if (draw_color_col) { draw_color_col = advance_color_col(VCOL_HLC, &color_cols); + } - /* Highlight the cursor column if 'cursorcolumn' is set. But don't - * highlight the cursor position itself. - * Also highlight the 'colorcolumn' if it is different than - * 'cursorcolumn' */ + // Highlight the cursor column if 'cursorcolumn' is set. But don't + // highlight the cursor position itself. + // Also highlight the 'colorcolumn' if it is different than + // 'cursorcolumn' vcol_save_attr = -1; if (draw_state == WL_LINE && !lnum_in_visual_area && search_attr == 0 && area_attr == 0) { @@ -4071,10 +4072,8 @@ win_line ( char_attr = hl_combine_attr(line_attr_lowprio, char_attr); } - /* - * Store character to be displayed. - * Skip characters that are left of the screen for 'nowrap'. - */ + // Store character to be displayed. + // Skip characters that are left of the screen for 'nowrap'. vcol_prev = vcol; if (draw_state < WL_LINE || n_skip <= 0) { // |