Mercurial > vim
changeset 28065:25e0e33ea49c v8.2.4557
patch 8.2.4557: confusing comment about 'cursorlineopt'
Commit: https://github.com/vim/vim/commit/754d2b40369d8fdcf77fc05cc608f86387016bd9
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Mar 13 13:40:45 2022 +0000
patch 8.2.4557: confusing comment about 'cursorlineopt'
Problem: Confusing comment about 'cursorlineopt'.
Solution: Adjust comment. (closes https://github.com/vim/vim/issues/9939) Add parenthesis around logical
OR.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Mar 2022 14:45:03 +0100 |
parents | d95d944ad3fe |
children | f022d3903e58 |
files | src/drawline.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/drawline.c +++ b/src/drawline.c @@ -1182,8 +1182,8 @@ win_line( #ifdef FEAT_SYN_HL // When 'cursorline' is set highlight the line number of // the current line differently. - // When 'cursorlineopt' has "screenline" only highlight - // the line number itself. + // When 'cursorlineopt' does not have "line" only + // highlight the line number itself. // TODO: Can we use CursorLine instead of CursorLineNr // when CursorLineNr isn't set? if (wp->w_p_cul @@ -1191,7 +1191,7 @@ win_line( && (wp->w_p_culopt_flags & CULOPT_NBR) && (row == startrow + filler_lines || (row > startrow + filler_lines - && wp->w_p_culopt_flags & CULOPT_LINE))) + && (wp->w_p_culopt_flags & CULOPT_LINE)))) char_attr = hl_combine_attr(wcr_attr, HL_ATTR(HLF_CLN)); #endif if (wp->w_p_rnu && lnum < wp->w_cursor.lnum