Mercurial > vim
view src/testdir/test_charsearch_utf8.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 | 2dcaa860e3fc |
children | f5946a50c931 |
line wrap: on
line source
" Tests for related f{char} and t{char} using utf-8. " Test for t,f,F,T movement commands func Test_search_cmds() new! call setline(1, "・最初から最後まで最強のVimは最高") 1 normal! f最 call assert_equal([0, 1, 4, 0], getpos('.')) normal! ; call assert_equal([0, 1, 16, 0], getpos('.')) normal! 2; call assert_equal([0, 1, 43, 0], getpos('.')) normal! , call assert_equal([0, 1, 28, 0], getpos('.')) bw! endfunc " vim: shiftwidth=2 sts=2 expandtab