Mercurial > vim
view src/testdir/test_curswant.vim @ 16664:ca1814eeecf5 v8.1.1334
patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not used
commit https://github.com/vim/vim/commit/eda652215abf696f86b872888945a2d2dd8c7192
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 16 20:29:44 2019 +0200
patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not used
Problem: When buffer is hidden "F" in 'shortmess' is not used.
Solution: Check the "F" flag in 'shortmess' when the buffer is already
loaded. (Jason Franklin) Add test_getvalue() to be able to test
this.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 May 2019 20:30:07 +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