diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-03-03 01:40:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 08:40:46 +0800 |
commit | dbf6be296df6da28151afdcb96ceb8ba2076cc65 (patch) | |
tree | 58efa98eed56f32deccf6ddff6f3df587e16a0f9 /test/functional/ui/statuscolumn_spec.lua | |
parent | dc8c086c7e73a9035c34be6416e7c465d61edc0e (diff) | |
download | rneovim-dbf6be296df6da28151afdcb96ceb8ba2076cc65.tar.gz rneovim-dbf6be296df6da28151afdcb96ceb8ba2076cc65.tar.bz2 rneovim-dbf6be296df6da28151afdcb96ceb8ba2076cc65.zip |
fix(column): full redraw with 'stc, 'rnu' and inserted lines (#27712)
Problem: Text is not redrawn with 'relativenumber' when only the 'statuscolumn' is redrawn after inserted lines.
Solution: Force a full redraw if statuscolumn width changed.
Diffstat (limited to 'test/functional/ui/statuscolumn_spec.lua')
-rw-r--r-- | test/functional/ui/statuscolumn_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/ui/statuscolumn_spec.lua b/test/functional/ui/statuscolumn_spec.lua index 3a3ff25c39..41406a5860 100644 --- a/test/functional/ui/statuscolumn_spec.lua +++ b/test/functional/ui/statuscolumn_spec.lua @@ -927,4 +927,17 @@ describe('statuscolumn', function() | ]]) end) + + it('line increase properly redraws buffer text with relativenumber #27709', function() + screen:try_resize(33, 4) + command([[set rnu nuw=3 stc=%l\ ]]) + command('call setline(1, range(1, 99))') + feed('Gyyp') + screen:expect([[ + 98 98 | + 99 99 | + 100 ^99 | + | + ]]) + end) end) |