Mercurial > vim
view src/testdir/test_curswant.vim @ 17524:2b35e273392b v8.1.1760
patch 8.1.1760: extra line break for wrapping output of :args
commit https://github.com/vim/vim/commit/9800bfe0fc7596e8fee97172139f0777bac639fb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 27 21:23:45 2019 +0200
patch 8.1.1760: extra line break for wrapping output of :args
Problem: Extra line break for wrapping output of :args.
Solution: Avoid the extra line break. (Daniel Hahler, closes https://github.com/vim/vim/issues/4737)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Jul 2019 21:30:05 +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