diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-07-19 22:47:39 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-07-19 22:47:39 +1000 |
| commit | 559af669c77a3b3b6de0376f177ebbba5ebd0328 (patch) | |
| tree | 1ad3deac73dac47abdfe0a159172481688f6ec51 /test | |
| parent | 9ebd0cd9c12523e02dae96130454791e48479704 (diff) | |
Remove out-of-date column computation in show-whitespaces
Now that we compute display buffer on whole lines, it does not make
sense to compute the tab padding based off the window column position
Fixes #4674
Diffstat (limited to 'test')
4 files changed, 6 insertions, 0 deletions
diff --git a/test/regression/4674-show-whitespaces-horizontal-scroll-assert/cmd b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/cmd new file mode 100644 index 00000000..f13d7ddb --- /dev/null +++ b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/cmd @@ -0,0 +1 @@ +gl diff --git a/test/regression/4674-show-whitespaces-horizontal-scroll-assert/in b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/in new file mode 100644 index 00000000..21417bda --- /dev/null +++ b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/in @@ -0,0 +1 @@ + foobar diff --git a/test/regression/4674-show-whitespaces-horizontal-scroll-assert/rc b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/rc new file mode 100644 index 00000000..c1f67a84 --- /dev/null +++ b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/rc @@ -0,0 +1,2 @@ +add-highlighter window/ show-whitespaces +add-highlighter window/ number-lines diff --git a/test/regression/4674-show-whitespaces-horizontal-scroll-assert/script b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/script new file mode 100644 index 00000000..573e827f --- /dev/null +++ b/test/regression/4674-show-whitespaces-horizontal-scroll-assert/script @@ -0,0 +1,2 @@ +ui_out -ignore 1 +ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": " 1│" }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": ["final_fg"] }, "contents": " → → → → → → → → " }, { "face": { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, "contents": "fooba" }, { "face": { "fg": "black", "bg": "white", "underline": "default", "attributes": [] }, "contents": "r" }]], { "fg": "default", "bg": "default", "underline": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "underline": "default", "attributes": [] }] }' |
