Mercurial > vim
view src/testdir/test_curswant.vim @ 22310:74d0a7a30583 v8.2.1704
patch 8.2.1704: Vim9: crash in for loop when autoload script has an error
Commit: https://github.com/vim/vim/commit/77e5dcc36a82da040072d74e3ced410d15c42757
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 17 21:29:03 2020 +0200
patch 8.2.1704: Vim9: crash in for loop when autoload script has an error
Problem: Vim9: crash in for loop when autoload script has an error.
Solution: Reset suppress_errthrow. Check for NULL list. (closes https://github.com/vim/vim/issues/6967)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Sep 2020 21:30:03 +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