diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-02-05 23:49:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 23:49:43 +0000 |
commit | 228684d2fbb6262f761b2b5d7001033bd69880c1 (patch) | |
tree | c0b13360d15e447d98d23fb1311bd34dc715d44e /test | |
parent | 7963a160e90f9ded63db1dfa24e607ee70af18ba (diff) | |
download | rneovim-228684d2fbb6262f761b2b5d7001033bd69880c1.tar.gz rneovim-228684d2fbb6262f761b2b5d7001033bd69880c1.tar.bz2 rneovim-228684d2fbb6262f761b2b5d7001033bd69880c1.zip |
fix(decoration): don't show signcolumn for non-sign_text extmark (#22135)
Fixes: #22127
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 489c33d8b1..6ed32a8cd4 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -2109,6 +2109,20 @@ l5 | ]]} end) + + it('does not set signcolumn for signs without text', function() + screen:try_resize(20, 3) + meths.win_set_option(0, 'signcolumn', 'auto') + insert(example_text) + feed 'gg' + meths.buf_set_extmark(0, ns, 0, -1, {number_hl_group='Error'}) + screen:expect{grid=[[ + ^l1 | + l2 | + | + ]]} + end) + end) describe('decorations: virt_text', function() |