diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2025-02-25 23:45:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-25 23:45:52 +0100 |
| commit | af0a2157ad2958b6c1e3c374ac247726c252c219 (patch) | |
| tree | 53621d08535123611bef1a13496f666885d5bca6 /test/functional/plugin | |
| parent | c3337e357a838aadf0ac40dd5bbc4dd0d1909b32 (diff) | |
| download | rneovim-af0a2157ad2958b6c1e3c374ac247726c252c219.tar.gz rneovim-af0a2157ad2958b6c1e3c374ac247726c252c219.tar.bz2 rneovim-af0a2157ad2958b6c1e3c374ac247726c252c219.zip | |
fix(move): wrong cursor row on concealed line (#32629)
Problem: Cursor row calculation does not take into account concealed lines.
Solution: Break the loop when the next calculated line is concealed.
Diffstat (limited to 'test/functional/plugin')
| -rw-r--r-- | test/functional/plugin/lsp/utils_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/plugin/lsp/utils_spec.lua b/test/functional/plugin/lsp/utils_spec.lua index 96d15820d4..2a7d877eb1 100644 --- a/test/functional/plugin/lsp/utils_spec.lua +++ b/test/functional/plugin/lsp/utils_spec.lua @@ -356,5 +356,15 @@ describe('vim.lsp.util', function() {1:~ }|*9 | ]]) + -- Entering window keeps lines concealed and doesn't end up below inner window size. + feed('<C-w>wG') + screen:expect([[ + | + ┌─────────┐{1: }| + │{100:^local}{101: }{102:foo}│{1: }| + └─────────┘{1: }| + {1:~ }|*9 + | + ]]) end) end) |