Mercurial > vim
view src/testdir/test_curswant.vim @ 25384:e8e2c4d33b9b v8.2.3229
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
Commit: https://github.com/vim/vim/commit/4490ec4e839e45a2e6923c265c7e9e64c240b805
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Jul 27 22:00:44 2021 +0200
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 27 Jul 2021 22:15:06 +0200 |
parents | 08940efa6b4e |
children |
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 " vim: shiftwidth=2 sts=2 expandtab