Mercurial > vim
view src/testdir/test_curswant.vim @ 20355:fc2d76e0994c v8.2.0733
patch 8.2.0733: Vim9: assigning to dict or list argument does not work
Commit: https://github.com/vim/vim/commit/cb2bdb1c6d8b6df4a3d9cfb1ad9e602dace5d310
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 10 22:53:56 2020 +0200
patch 8.2.0733: Vim9: assigning to dict or list argument does not work
Problem: Vim9: assigning to dict or list argument does not work.
Solution: Recognize an argument as assignment target.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 May 2020 23:00:04 +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