Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17942:664cc72f50c5 v8.1.1967
patch 8.1.1967: line() only works for the current window
Commit: https://github.com/vim/vim/commit/8e0a8e7eb7c177807f44db6b76d8e52314248ab5
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 2 22:56:24 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Sep 2019 23:00:04 +0200 |
parents | 0bf8cb0258be |
children | ec4248c4b92c |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -346,6 +346,10 @@ func Test_popup_firstline() redraw call assert_equal(11, popup_getoptions(winid).firstline) call assert_equal(11, popup_getpos(winid).firstline) + " check line() works with popup window + call assert_equal(11, line('.', winid)) + call assert_equal(50, line('$', winid)) + call assert_equal(0, line('$', 123456)) " Normal command changes what is displayed but not "firstline" call win_execute(winid, "normal! \<c-y>")