aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-04-01 07:56:16 +0200
committerGitHub <noreply@github.com>2025-04-01 07:56:16 +0200
commit32325a66ca0df66ba712b3316f24c358c4947620 (patch)
tree370b70f0ccdae3fac5cec80c8a0feafcac50ec13 /test/functional
parent8a40213eb38dcdcb4c59dda2fe088f5919e903f2 (diff)
downloadrneovim-32325a66ca0df66ba712b3316f24c358c4947620.tar.gz
rneovim-32325a66ca0df66ba712b3316f24c358c4947620.tar.bz2
rneovim-32325a66ca0df66ba712b3316f24c358c4947620.zip
fix(move): adjust for concealed lines above topline after scrolling up (#33211)
Problem: Scrolling up does not adjust `w_topline` for concealed lines directly above it, resulting in (non-visual) asymmetry when scrolling up/down. Solution: Adjust `w_topline` for concealed lines after scrolling up.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/decorations_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index 5ef1ef54bb..06bb5a14c9 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -2978,6 +2978,13 @@ describe('extmark decorations', function()
{1:~ }|
|
]])
+ -- No asymmetric topline for <C-E><C-Y> #33182
+ feed('4<C-E>')
+ exec('set concealcursor=n')
+ api.nvim_buf_set_extmark(0, ns, 4, 0, { conceal_lines = "" })
+ eq(5, n.fn.line('w0'))
+ feed('<C-E><C-Y>')
+ eq(5, n.fn.line('w0'))
end)
end)