From 3fda3a84bf7d8b29819135d1984d1268e1636e21 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 Jun 2025 09:12:47 +1000 Subject: Rework WrapHighlighter to take replaced ranges into account Replaced ranges will count towards the wrapping column but will not be split. Fixes #4883 --- test/highlight/wrap/basic/script | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/highlight/wrap/basic/script (limited to 'test/highlight/wrap/basic/script') 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] }' + -- cgit v1.2.3