mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-22 05:03:56 +03:00
Highlight all atoms for the line regardless of has_buffer_range
This changes the behaviour with say line numbers and other line flags, but can be opted out by using final faces Fixes #5253
This commit is contained in:
parent
12473583a5
commit
8c49c8ee40
@ -506,10 +506,8 @@ std::unique_ptr<Highlighter> create_line_highlighter(HighlighterParameters param
|
||||
for (auto& atom : *it)
|
||||
{
|
||||
column += atom.length();
|
||||
if (!atom.has_buffer_range())
|
||||
continue;
|
||||
|
||||
kak_assert(atom.begin().line == line);
|
||||
if (atom.has_buffer_range() and atom.begin().line != line)
|
||||
break;
|
||||
apply_face(face)(atom);
|
||||
}
|
||||
const ColumnCount remaining = context.context.window().dimensions().column - column;
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,3 @@
|
||||
|
||||
TEST
|
||||
|
@ -0,0 +1,2 @@
|
||||
add-highlighter global/ column 40 "default,green"
|
||||
add-highlighter global/ line 2 "default,blue"
|
@ -0,0 +1 @@
|
||||
ui_out -until-grep '"method": "draw"' '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "cyan", "underline": "default", "attributes": [] }, "contents": "\u000a" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "default", "bg": "green", "underline": "default", "attributes": [] }, "contents": " " }], [{ "face": { "fg": "default", "bg": "blue", "underline": "default", "attributes": [] }, "contents": "TEST\u000a" }, { "face": { "fg": "default", "bg": "blue", "underline": "default", "attributes": [] }, "contents": " " }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "\u000a" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "default", "bg": "green", "underline": "default", "attributes": [] }, "contents": " " }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'
|
Loading…
Reference in New Issue
Block a user