diff options
author | Yatao Li <yatli@microsoft.com> | 2021-09-11 10:19:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 19:19:39 -0700 |
commit | 086631cd92d7b60f122963f9fd1779583b19004c (patch) | |
tree | d126146d64dcd4a15ea59d5cb1f4321a179fa96f /test/functional/ui/screen.lua | |
parent | 09a477737fbfec1d49a88709e9d4661a0b4fd1e8 (diff) | |
download | rneovim-086631cd92d7b60f122963f9fd1779583b19004c.tar.gz rneovim-086631cd92d7b60f122963f9fd1779583b19004c.tar.bz2 rneovim-086631cd92d7b60f122963f9fd1779583b19004c.zip |
feat(api): win_viewport also sends line_count #15613
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index f73d051857..61f19c3794 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -773,13 +773,14 @@ function Screen:_handle_win_pos(grid, win, startrow, startcol, width, height) self.float_pos[grid] = nil end -function Screen:_handle_win_viewport(grid, win, topline, botline, curline, curcol) +function Screen:_handle_win_viewport(grid, win, topline, botline, curline, curcol, linecount) self.win_viewport[grid] = { win = win, topline = topline, botline = botline, curline = curline, - curcol = curcol + curcol = curcol, + linecount = linecount } end @@ -1306,7 +1307,7 @@ local function fmt_ext_state(name, state) for k,v in pairs(state) do str = (str.." ["..k.."] = {win = {id = "..v.win.id.."}, topline = " ..v.topline..", botline = "..v.botline..", curline = "..v.curline - ..", curcol = "..v.curcol.."};\n") + ..", curcol = "..v.curcol..", linecount = "..v.linecount.."};\n") end return str .. "}" elseif name == "float_pos" then |