summaryrefslogtreecommitdiff
path: root/test/highlight/replace-empty-range/script
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-04-25 12:17:39 +1000
committerMaxime Coste <mawww@kakoune.org>2020-04-27 14:31:26 +1000
commit0fdfbdfd158ed699629d1010fd571b7c6ebcb87d (patch)
treea81da269f0a10bdffd170d950456baa9164cd880 /test/highlight/replace-empty-range/script
parentfde4c60dd9ff32a7dcf915ea17c345a5262f023c (diff)
Fix highlighting empty ranges at end of line and begin of line
Diffstat (limited to 'test/highlight/replace-empty-range/script')
-rw-r--r--test/highlight/replace-empty-range/script7
1 files changed, 7 insertions, 0 deletions
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] }'