diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-10 22:40:08 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-12 19:13:28 -0400 |
commit | dad725d5e578c5dbef5a0bf503fa1b41aaf3ff6b (patch) | |
tree | fd9c07e62df7c3e9653f3076f4b14bb7602c7420 /test/functional/ui/float_spec.lua | |
parent | 89e29e8774ed953048ab746d4a83a6f08d850d17 (diff) | |
download | rneovim-dad725d5e578c5dbef5a0bf503fa1b41aaf3ff6b.tar.gz rneovim-dad725d5e578c5dbef5a0bf503fa1b41aaf3ff6b.tar.bz2 rneovim-dad725d5e578c5dbef5a0bf503fa1b41aaf3ff6b.zip |
vim-patch:8.1.1967: line() only works for the current window
Problem: Line() only works for the current window.
Solution: Add an optional argument for the window to use.
https://github.com/vim/vim/commit/8e0a8e7eb7c177807f44db6b76d8e52314248ab5
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 66aaf0c941..39904663ee 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -64,10 +64,13 @@ describe('float window', function() it('win_execute() should work' , function() local buf = meths.create_buf(false, false) - meths.buf_set_lines(buf, 0, -1, true, {'the floatwin'}) + meths.buf_set_lines(buf, 0, -1, true, {'the floatwin', 'abc', 'def'}) local win = meths.open_win(buf, false, {relative='win', width=16, height=1, row=0, col=10}) local line = funcs.win_execute(win, 'echo getline(1)') eq('\nthe floatwin', line) + eq('\n1', funcs.win_execute(win, 'echo line(".",'..win.id..')')) + eq('\n3', funcs.win_execute(win, 'echo line("$",'..win.id..')')) + eq('\n0', funcs.win_execute(win, 'echo line("$", 123456)')) funcs.win_execute(win, 'bwipe!') end) |