Mercurial > vim
view src/testdir/test_curswant.vim @ 16326:1679b9f54946 v8.1.1168
patch 8.1.1168: not all screen update code of terminal is executed in tests
commit https://github.com/vim/vim/commit/87dcfd75c218107ca966c80a0a56b236be046fc9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 13 22:35:29 2019 +0200
patch 8.1.1168: not all screen update code of terminal is executed in tests
Problem: Not all screen update code of the terminal window is executed in
tests.
Solution: Redraw before taking a screenshot.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Apr 2019 22:45:04 +0200 |
parents | 0240e7e3d736 |
children | 08940efa6b4e |
line wrap: on
line source
" Tests for curswant not changing when setting an option func Test_curswant() new call append(0, ['1234567890', '12345']) normal! ggf8j call assert_equal(7, winsaveview().curswant) let &tabstop=&tabstop call assert_equal(4, winsaveview().curswant) normal! ggf8j call assert_equal(7, winsaveview().curswant) let &timeoutlen=&timeoutlen call assert_equal(7, winsaveview().curswant) normal! ggf8j call assert_equal(7, winsaveview().curswant) let &ttimeoutlen=&ttimeoutlen call assert_equal(7, winsaveview().curswant) enew! endfunc