diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-23 18:05:04 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-04-01 19:43:55 +0200 |
commit | 1fe0b329fe1d40e5837a43f53da0e0fff38477bc (patch) | |
tree | 4f4fe9af5166713bab5ac6403bf42636a6fdaa00 /test/functional/ui/float_spec.lua | |
parent | 4139678f97ee556ab142031a1ed5c7580278b64f (diff) | |
download | rneovim-1fe0b329fe1d40e5837a43f53da0e0fff38477bc.tar.gz rneovim-1fe0b329fe1d40e5837a43f53da0e0fff38477bc.tar.bz2 rneovim-1fe0b329fe1d40e5837a43f53da0e0fff38477bc.zip |
api/ui: win_viewport event for visible range and cursor position in window
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 7a5569c14b..639e311ae6 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -976,6 +976,28 @@ describe('floatwin', function() {2:~ }| ]], float_pos={ [5] = {{id = 1002}, "NE", 4, 0, 50, true} + }, win_viewport = { + [2] = { + topline = 0, + botline = 3, + curline = 0, + curcol = 3, + win = { id = 1000 } + }, + [4] = { + topline = 0, + botline = 3, + curline = 0, + curcol = 3, + win = { id = 1001 } + }, + [5] = { + topline = 0, + botline = 2, + curline = 0, + curcol = 0, + win = { id = 1002 } + } }} else screen:expect([[ |