Mercurial > vim
diff src/testdir/test_vim9_cmd.vim @ 25658:483b40e87ca5 v8.2.3365
patch 8.2.3365: Vim9: cannot use option for all operations
Commit: https://github.com/vim/vim/commit/bf5f2878333da934a8bdc560bf0bcf9a88ff86a1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 21 20:50:35 2021 +0200
patch 8.2.3365: Vim9: cannot use option for all operations
Problem: Vim9: cannot use option for all operations.
Solution: Recognize more operations. (closes https://github.com/vim/vim/issues/8779)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 Aug 2021 21:00:03 +0200 |
parents | 15b54e0a576b |
children | 23f065f27d2e |
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -521,6 +521,22 @@ def Test_method_and_user_command() CheckScriptSuccess(lines) enddef +def Test_option_use_linebreak() + var lines =<< trim END + new + &matchpairs = '(:)' + &matchpairs->setline(1) + &matchpairs = '[:]' + &matchpairs ->setline(2) + &matchpairs = '{:}' + &matchpairs + ->setline(3) + assert_equal(['(:)', '[:]', '{:}'], getline(1, '$')) + bwipe! + END + CheckDefAndScriptSuccess(lines) +enddef + def Test_skipped_expr_linebreak() if 0 var x = []