forked from aniani/vim
patch 9.0.1631: passing wrong variable type to option gives multiple errors
Problem: Passing a wrong variable type to an option gives multiple errors. Solution: Bail out early on failure. (closes #12504)
This commit is contained in:
@@ -7077,7 +7077,7 @@ func Test_compound_assignment_operators()
|
||||
call assert_equal(6, &scrolljump)
|
||||
let &scrolljump %= 5
|
||||
call assert_equal(1, &scrolljump)
|
||||
call assert_fails('let &scrolljump .= "j"', 'E734:')
|
||||
call assert_fails('let &scrolljump .= "j"', ['E734:', 'E734:'])
|
||||
set scrolljump&vim
|
||||
|
||||
let &foldlevelstart = 2
|
||||
|
||||
Reference in New Issue
Block a user