aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-13 21:50:17 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-13 22:28:37 +0800
commit6e1caeaf3a5e4674244220cad5b1e1834a8b8b36 (patch)
treeb3742b5613f5294a76cc4f4e2fc1395d691bdd8c /src
parent4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6 (diff)
downloadrneovim-6e1caeaf3a5e4674244220cad5b1e1834a8b8b36.tar.gz
rneovim-6e1caeaf3a5e4674244220cad5b1e1834a8b8b36.tar.bz2
rneovim-6e1caeaf3a5e4674244220cad5b1e1834a8b8b36.zip
vim-patch:8.2.4557: confusing comment about 'cursorlineopt'
Problem: Confusing comment about 'cursorlineopt'. Solution: Adjust comment. (closes vim/vim#9939) Add parenthesis around logical OR. https://github.com/vim/vim/commit/754d2b40369d8fdcf77fc05cc608f86387016bd9
Diffstat (limited to 'src')
-rw-r--r--src/nvim/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 0a1f388456..6fd431a82a 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2788,11 +2788,11 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
&& (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)))) {
// 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(vim): Can we use CursorLine instead of CursorLineNr
// when CursorLineNr isn't set?
char_attr = win_hl_attr(wp, HLF_CLN);