]> granicus.if.org Git - vim/commitdiff
patch 8.2.4557: confusing comment about 'cursorlineopt' v8.2.4557
authorzeertzjq <zeertzjq@outlook.com>
Sun, 13 Mar 2022 13:40:45 +0000 (13:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Mar 2022 13:40:45 +0000 (13:40 +0000)
Problem:    Confusing comment about 'cursorlineopt'.
Solution:   Adjust comment.  (closes #9939)  Add parenthesis around logical
            OR.

src/drawline.c
src/version.c

index 19b0573356975800497141b6759200641f153e36..d8b7c4aad19d98e747f5fe58da68880b0b994d66 100644 (file)
@@ -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
index ac3be8b115cbf4dbccbdffc856adf100d8522579..9a624cfbc46e0053b9c8511e07405ba67920c678 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4557,
 /**/
     4556,
 /**/