diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-28 07:39:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 07:39:36 +0800 |
commit | 4ee9e58056a9d17ce921d8cc6dfd6d3305a40f69 (patch) | |
tree | ba48366c55a17d1a3fd97f79ec738dedae64ed30 /test/functional/terminal/tui_spec.lua | |
parent | 7168000b53eb2da9a910ba038c3aa93822d3f196 (diff) | |
download | rneovim-4ee9e58056a9d17ce921d8cc6dfd6d3305a40f69.tar.gz rneovim-4ee9e58056a9d17ce921d8cc6dfd6d3305a40f69.tar.bz2 rneovim-4ee9e58056a9d17ce921d8cc6dfd6d3305a40f69.zip |
feat(tui): query extended underline support using DECRQSS (#28052)
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 0300672a08..10d9099431 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -1588,6 +1588,35 @@ describe('TUI', function() } end) + -- Note: libvterm doesn't support colored underline or undercurl. + it('supports undercurl and underdouble when run in :terminal', function() + screen:set_default_attr_ids({ + [1] = { reverse = true }, + [2] = { bold = true, reverse = true }, + [3] = { bold = true }, + [4] = { foreground = 12 }, + [5] = { undercurl = true }, + [6] = { underdouble = true }, + }) + child_session:request('nvim_set_hl', 0, 'Visual', { undercurl = true }) + feed_data('ifoobar\027V') + screen:expect([[ + {5:fooba}{1:r} | + {4:~ }|*3 + {2:[No Name] [+] }| + {3:-- VISUAL LINE --} | + {3:-- TERMINAL --} | + ]]) + child_session:request('nvim_set_hl', 0, 'Visual', { underdouble = true }) + screen:expect([[ + {6:fooba}{1:r} | + {4:~ }|*3 + {2:[No Name] [+] }| + {3:-- VISUAL LINE --} | + {3:-- TERMINAL --} | + ]]) + end) + it('in nvim_list_uis()', function() -- $TERM in :terminal. local exp_term = is_os('bsd') and 'builtin_xterm' or 'xterm-256color' |