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/searchhl_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/searchhl_spec.lua')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 916a5eb537..3c8dceb8cb 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -52,7 +52,7 @@ describe('search highlighting', function() {1:~ }| /text^ | ]], win_viewport={ - [2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 9, linecount = 2}; + [2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 9, linecount = 2, sum_scroll_delta = 0}; }} end) @@ -616,7 +616,7 @@ describe('search highlighting', function() {1:~ }| {4:search hit BOTTOM, continuing at TOP} | ]], win_viewport={ - [2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 11, linecount = 2}; + [2] = {win = {id = 1000}, topline = 0, botline = 3, curline = 0, curcol = 11, linecount = 2, sum_scroll_delta = 0}; }} -- check highlights work also in folds |