patch 8.1.2019: 'cursorline' always highlights the whole line

Problem:    'cursorline' always highlights the whole line.
Solution:   Add 'cursorlineopt' to specify what is highlighted.
            (closes #4693)
This commit is contained in:
Bram Moolenaar
2019-09-09 22:05:49 +02:00
parent e5fbd73930
commit 410e98a70b
13 changed files with 172 additions and 9 deletions
+16 -3
View File
@@ -2461,13 +2461,26 @@ A jump table for the options with a short description can be found at |Q_op|.
local to window
{not available when compiled without the |+syntax|
feature}
Highlight the screen line of the cursor with CursorLine
|hl-CursorLine|. Useful to easily spot the cursor. Will make screen
redrawing slower.
Highlight the text line of the cursor with CursorLine |hl-CursorLine|.
Useful to easily spot the cursor. Will make screen redrawing slower.
When Visual mode is active the highlighting isn't used to make it
easier to see the selected text.
*'cursorlineopt'* *'culopt'*
'cursorlineopt' 'culopt' string (default: "both")
local to window
{not in Vi}
{not available when compiled without the |+syntax|
feature}
Settings for how 'cursorline' is displayed. Valid values:
"line" Highlight the text line of the cursor with
CursorLine |hl-CursorLine|.
"number" Highlight the line number of the cursor with
CursorLineNr |hl-CursorLineNr|.
"both" Highlight as both "line" and "number" are set.
*'debug'*
'debug' string (default "")
global