comparison src/testdir/test_vim9_expr.vim @ 21612:c495d3e30f4b v8.2.1356

patch 8.2.1356: Vim9: cannot get the percent register Commit: https://github.com/vim/vim/commit/7226e5b19bd6e081043cbcc32541ef72bbdf667d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 2 17:33:26 2020 +0200 patch 8.2.1356: Vim9: cannot get the percent register Problem: Vim9: cannot get the percent register. Solution: Check for readable registers instead of writable. (closes https://github.com/vim/vim/issues/6566)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Aug 2020 17:45:03 +0200
parents 55aa283a0e5e
children d0128ecd4341
comparison
equal deleted inserted replaced
21611:4bc6d27d7c73 21612:c495d3e30f4b
1428 enddef 1428 enddef
1429 1429
1430 def Test_expr7_register() 1430 def Test_expr7_register()
1431 @a = 'register a' 1431 @a = 'register a'
1432 assert_equal('register a', @a) 1432 assert_equal('register a', @a)
1433
1434 let fname = expand('%')
1435 assert_equal(fname, @%)
1436
1437 feedkeys(":echo 'some'\<CR>", "xt")
1438 assert_equal("echo 'some'", @:)
1439
1440 normal axyz
1441 assert_equal("xyz", @.)
1433 enddef 1442 enddef
1434 1443
1435 def Test_expr7_namespace() 1444 def Test_expr7_namespace()
1436 g:some_var = 'some' 1445 g:some_var = 'some'
1437 assert_equal('some', get(g:, 'some_var')) 1446 assert_equal('some', get(g:, 'some_var'))