diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-06-25 11:00:28 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-06-25 11:00:28 +1000 |
| commit | fc013317fff00f4db66c3059ad87343656a4d9d9 (patch) | |
| tree | 701b9ffbddf19282d2cf3f1fb80afea268fb0c53 | |
| parent | f73a2957f233ec07f1b3ab81957c1c3e98d1f5da (diff) | |
Add yet another highlighter test
4 files changed, 8 insertions, 0 deletions
diff --git a/test/highlight/wrap/interact-with-number-lines/cmd b/test/highlight/wrap/interact-with-number-lines/cmd new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/highlight/wrap/interact-with-number-lines/cmd @@ -0,0 +1 @@ + diff --git a/test/highlight/wrap/interact-with-number-lines/in b/test/highlight/wrap/interact-with-number-lines/in new file mode 100644 index 00000000..7bba8c8e --- /dev/null +++ b/test/highlight/wrap/interact-with-number-lines/in @@ -0,0 +1,2 @@ +line 1 +line 2 diff --git a/test/highlight/wrap/interact-with-number-lines/rc b/test/highlight/wrap/interact-with-number-lines/rc new file mode 100644 index 00000000..8f447491 --- /dev/null +++ b/test/highlight/wrap/interact-with-number-lines/rc @@ -0,0 +1,2 @@ +add-highlighter window/ wrap -word -width 4 +add-highlighter window/ number-lines diff --git a/test/highlight/wrap/interact-with-number-lines/script b/test/highlight/wrap/interact-with-number-lines/script new file mode 100644 index 00000000..67e34fea --- /dev/null +++ b/test/highlight/wrap/interact-with-number-lines/script @@ -0,0 +1,3 @@ +ui_out '{ "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] }' +ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 1│" }, { "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "l" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "ine" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": ["italic"] }, "contents": " 1" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "│" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 1\u000a" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 2│" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "line" }], [{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": ["italic"] }, "contents": " 2" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "│" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 2\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] }' |
