diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-14 07:51:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 07:51:04 +0800 |
commit | a376d979bda103fa9998d05c3cc4ba56d3c3cece (patch) | |
tree | 2305d9e9fda19be568d52571e3350cb5295a2243 /test/functional/ui/decorations_spec.lua | |
parent | b2f7a3aaad72fa01dc1230f246c26d878f5a41a6 (diff) | |
download | rneovim-a376d979bda103fa9998d05c3cc4ba56d3c3cece.tar.gz rneovim-a376d979bda103fa9998d05c3cc4ba56d3c3cece.tar.bz2 rneovim-a376d979bda103fa9998d05c3cc4ba56d3c3cece.zip |
fix(extmarks): redraw line on adding/removing conceal (#27463)
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 951188614b..e877dd2283 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -1742,6 +1742,35 @@ describe('extmark decorations', function() ]]} end) + it('redraws properly when adding/removing conceal on non-current line', function() + screen:try_resize(50, 5) + api.nvim_buf_set_lines(0, 0, -1, true, {'abcd', 'efgh','ijkl', 'mnop'}) + command('setlocal conceallevel=2') + screen:expect{grid=[[ + ^abcd | + efgh | + ijkl | + mnop | + | + ]]} + api.nvim_buf_set_extmark(0, ns, 2, 1, {end_col=3, conceal=''}) + screen:expect{grid=[[ + ^abcd | + efgh | + il | + mnop | + | + ]]} + api.nvim_buf_clear_namespace(0, ns, 0, -1) + screen:expect{grid=[[ + ^abcd | + efgh | + ijkl | + mnop | + | + ]]} + end) + it('avoids redraw issue #20651', function() exec_lua[[ vim.cmd.normal'10oXXX' |