0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.1067: expression "!expr->func()" does not work

Problem:    Expression "!expr->func()" does not work.
Solution:   Apply plus and minus earlier. (closes #6348)
This commit is contained in:
Bram Moolenaar
2020-06-27 13:11:50 +02:00
parent bd84617d1a
commit 0b1cd52ff6
7 changed files with 38 additions and 18 deletions

View File

@@ -110,6 +110,13 @@ func Test_special_char()
call assert_fails('echo "\<C-">')
endfunc
func Test_method_with_prefix()
call assert_equal(1, !range(5)->empty())
call assert_equal([0, 1, 2], --3->range())
call assert_equal(0, !-3)
call assert_equal(1, !+-+0)
endfunc
func Test_option_value()
" boolean
set bri