Mercurial > vim
comparison src/testdir/test_display.vim @ 21877:7fb29e719d79 v8.2.1488
patch 8.2.1488: text does not scroll when inserting above first line
Commit: https://github.com/vim/vim/commit/9dc1917f42b23277e143fc58bbe27482b0b76bad
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 19 20:19:48 2020 +0200
patch 8.2.1488: text does not scroll when inserting above first line
Problem: Text does not scroll when inserting above first line.
Solution: Adjust off-by-one error. (Ken Takata, closes https://github.com/vim/vim/issues/6739)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Aug 2020 20:30:04 +0200 |
parents | 08940efa6b4e |
children | e0af4660dfc7 |
comparison
equal
deleted
inserted
replaced
21876:43877f9603c1 | 21877:7fb29e719d79 |
---|---|
243 | 243 |
244 call StopVimInTerminal(buf) | 244 call StopVimInTerminal(buf) |
245 call delete(filename) | 245 call delete(filename) |
246 endfunc | 246 endfunc |
247 | 247 |
248 func Test_display_scroll_at_topline() | |
249 CheckScreendump | |
250 | |
251 let buf = RunVimInTerminal('', #{cols: 20}) | |
252 call term_sendkeys(buf, ":call setline(1, repeat('a', 21))\<CR>") | |
253 call term_wait(buf) | |
254 call term_sendkeys(buf, "O\<Esc>") | |
255 call VerifyScreenDump(buf, 'Test_display_scroll_at_topline', #{rows: 4}) | |
256 | |
257 call StopVimInTerminal(buf) | |
258 endfunc | |
259 | |
248 " vim: shiftwidth=2 sts=2 expandtab | 260 " vim: shiftwidth=2 sts=2 expandtab |