summaryrefslogtreecommitdiff
path: root/test/highlight/wrap/basic/script
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-06-26 09:12:47 +1000
committerMaxime Coste <mawww@kakoune.org>2025-06-26 10:29:23 +1000
commit3fda3a84bf7d8b29819135d1984d1268e1636e21 (patch)
treedf8d6e2e21ec4b74e6a16c252cca34f8c9a86604 /test/highlight/wrap/basic/script
parent5439403146d027fd3eb0dd2a62e4d1f68e8ddbf2 (diff)
Rework WrapHighlighter to take replaced ranges into account
Replaced ranges will count towards the wrapping column but will not be split. Fixes #4883
Diffstat (limited to 'test/highlight/wrap/basic/script')
-rw-r--r--test/highlight/wrap/basic/script4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/highlight/wrap/basic/script b/test/highlight/wrap/basic/script
new file mode 100644
index 00000000..7151f6a6
--- /dev/null
+++ b/test/highlight/wrap/basic/script
@@ -0,0 +1,4 @@
+ui_out '{ "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] }'
+ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "-" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "-------------------------------------------------------------------------------" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "wrap\u000a" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "--------------------------------------------------------------------------------" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "wrap----------------------------------------------------------------------------" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "wrap\u000a" }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }'
+ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [true] }'
+