Mercurial > vim
view src/testdir/test_curswant.vim @ 22621:576a69fc0066 v8.2.1859
patch 8.2.1859: Vim9: crash in unpack assignment
Commit: https://github.com/vim/vim/commit/352134bbfbff4831a3f6a3383d9e2d8660016243
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 17 22:04:08 2020 +0200
patch 8.2.1859: Vim9: crash in unpack assignment
Problem: Vim9: crash in unpack assignment.
Solution: Make sure an error message is turned into an exception.
(closes #7159)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Oct 2020 22:15: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