Mercurial > vim
diff src/testdir/test_terminal.vim @ 12025:c0ee48f48a2b v8.0.0893
patch 8.0.0893: cannot get the scroll count of a terminal window
commit https://github.com/vim/vim/commit/82b9ca05f40a627355e7c3bcf49b1f19ffbdaf87
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 8 23:06:46 2017 +0200
patch 8.0.0893: cannot get the scroll count of a terminal window
Problem: Cannot get the scroll count of a terminal window.
Solution: Add term_getscrolled().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 08 Aug 2017 23:15:04 +0200 |
parents | 1f4e7361ce89 |
children | 9897241c08b5 |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -227,9 +227,13 @@ func Test_terminal_scroll() sleep 100m endif + let scrolled = term_getscrolled(buf) call assert_equal('1', getline(1)) + call assert_equal('1', term_getline(buf, 1 - scrolled)) call assert_equal('49', getline(49)) + call assert_equal('49', term_getline(buf, 49 - scrolled)) call assert_equal('200', getline(200)) + call assert_equal('200', term_getline(buf, 200 - scrolled)) exe buf . 'bwipe' call delete('Xtext')