comparison 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
comparison
equal deleted inserted replaced
25657:26c53bca9f23 25658:483b40e87ca5
517 unlet g:didCmd 517 unlet g:didCmd
518 enddef 518 enddef
519 InDefFunc() 519 InDefFunc()
520 END 520 END
521 CheckScriptSuccess(lines) 521 CheckScriptSuccess(lines)
522 enddef
523
524 def Test_option_use_linebreak()
525 var lines =<< trim END
526 new
527 &matchpairs = '(:)'
528 &matchpairs->setline(1)
529 &matchpairs = '[:]'
530 &matchpairs ->setline(2)
531 &matchpairs = '{:}'
532 &matchpairs
533 ->setline(3)
534 assert_equal(['(:)', '[:]', '{:}'], getline(1, '$'))
535 bwipe!
536 END
537 CheckDefAndScriptSuccess(lines)
522 enddef 538 enddef
523 539
524 def Test_skipped_expr_linebreak() 540 def Test_skipped_expr_linebreak()
525 if 0 541 if 0
526 var x = [] 542 var x = []