diff options
author | Matthias Deiml <matthias@deiml.net> | 2023-03-12 23:58:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 15:58:46 -0700 |
commit | fd2ece278b0941ec6673489e88868120e86b834a (patch) | |
tree | af318b0e355797ee3086037d52e2203492d13ddc /test/functional/ui/cmdline_spec.lua | |
parent | e5f4394eb7a27a9e5eaab088e6acf5553c64cf59 (diff) | |
download | rneovim-fd2ece278b0941ec6673489e88868120e86b834a.tar.gz rneovim-fd2ece278b0941ec6673489e88868120e86b834a.tar.bz2 rneovim-fd2ece278b0941ec6673489e88868120e86b834a.zip |
feat(ui): add scroll_delta to win_viewport event #19270
scroll_delta contains how much the top line of a window moved since the
last time win_viewport was emitted. It is expected to be used to
implement smooth scrolling. For this purpose it only counts "virtual" or
"displayed" so folds should count as one line. Because of this it
adds extra information that cannot be computed from the topline
parameter.
Fixes #19227
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index 1c9ac7f7ba..a9469bdf2d 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -1241,7 +1241,7 @@ describe('cmdheight=0', function() {1:~ }| ## grid 3 ]], win_viewport={ - [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1}; + [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0}; }} feed '/p' @@ -1261,7 +1261,7 @@ describe('cmdheight=0', function() ## grid 3 /p^ | ]], win_viewport={ - [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1}; + [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1, sum_scroll_delta = 0}; }} end) |