diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-04-25 12:17:39 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-04-27 14:31:26 +1000 |
| commit | 0fdfbdfd158ed699629d1010fd571b7c6ebcb87d (patch) | |
| tree | a81da269f0a10bdffd170d950456baa9164cd880 /test/highlight/replace-empty-range | |
| parent | fde4c60dd9ff32a7dcf915ea17c345a5262f023c (diff) | |
Fix highlighting empty ranges at end of line and begin of line
Diffstat (limited to 'test/highlight/replace-empty-range')
| -rw-r--r-- | test/highlight/replace-empty-range/cmd | 1 | ||||
| -rw-r--r-- | test/highlight/replace-empty-range/in | 2 | ||||
| -rw-r--r-- | test/highlight/replace-empty-range/rc | 2 | ||||
| -rw-r--r-- | test/highlight/replace-empty-range/script | 7 |
4 files changed, 12 insertions, 0 deletions
diff --git a/test/highlight/replace-empty-range/cmd b/test/highlight/replace-empty-range/cmd new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/highlight/replace-empty-range/cmd @@ -0,0 +1 @@ + diff --git a/test/highlight/replace-empty-range/in b/test/highlight/replace-empty-range/in new file mode 100644 index 00000000..b28e3e21 --- /dev/null +++ b/test/highlight/replace-empty-range/in @@ -0,0 +1,2 @@ +12345 +12345 diff --git a/test/highlight/replace-empty-range/rc b/test/highlight/replace-empty-range/rc new file mode 100644 index 00000000..054759c6 --- /dev/null +++ b/test/highlight/replace-empty-range/rc @@ -0,0 +1,2 @@ +declare-option range-specs test_ranges %val{timestamp} '1.1+0|A' '1.7+0|B' '2.3+0|C' +add-highlighter window/ replace-ranges test_ranges diff --git a/test/highlight/replace-empty-range/script b/test/highlight/replace-empty-range/script new file mode 100644 index 00000000..3f4df30d --- /dev/null +++ b/test/highlight/replace-empty-range/script @@ -0,0 +1,7 @@ +ui_out '{ "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] }' +ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "A" }, { "face": { "fg": "black", "bg": "white", "attributes": [] }, "contents": "1" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "2345\u000a" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "B" }], [{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "12" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "C" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "345\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] }' +ui_out '{ "jsonrpc": "2.0", "method": "menu_hide", "params": [] }' +ui_out '{ "jsonrpc": "2.0", "method": "info_hide", "params": [] }' +ui_out '{ "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "out 1:1 " }, { "face": { "fg": "black", "bg": "yellow", "attributes": [] }, "contents": "" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "attributes": [] }] }' +ui_out '{ "jsonrpc": "2.0", "method": "set_cursor", "params": ["buffer", { "line": 0, "column": 1 }] }' +ui_out '{ "jsonrpc": "2.0", "method": "refresh", "params": [true] }' |
