mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
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.
8e0a8e7eb7
This commit is contained in:
@@ -73,6 +73,7 @@ describe('NULL', function()
|
||||
null_expr_test('does not crash col()', 'col(L)', 0, 0)
|
||||
null_expr_test('does not crash virtcol()', 'virtcol(L)', 0, 0)
|
||||
null_expr_test('does not crash line()', 'line(L)', 0, 0)
|
||||
null_expr_test('does not crash line() with window id', 'line(L, 1000)', 0, 0)
|
||||
null_expr_test('does not crash count()', 'count(L, 1)', 0, 0)
|
||||
null_expr_test('does not crash cursor()', 'cursor(L)', 'E474: Invalid argument', -1)
|
||||
null_expr_test('does not crash map()', 'map(L, "v:val")', 0, {})
|
||||
|
||||
Reference in New Issue
Block a user