mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 10:28:33 +00:00
vim-patch:9.0.1631: passing wrong variable type to option gives multiple errors (#24026)
Problem: Passing a wrong variable type to an option gives multiple errors.
Solution: Bail out early on failure. (closes vim/vim#12504)
4c7cb372c1
This commit is contained in:
@@ -6997,10 +6997,7 @@ func Test_compound_assignment_operators()
|
||||
call assert_equal(6, &scrolljump)
|
||||
let &scrolljump %= 5
|
||||
call assert_equal(1, &scrolljump)
|
||||
" A different error is shown due to a change in implementation of option
|
||||
" values.
|
||||
" call assert_fails('let &scrolljump .= "j"', 'E734:')
|
||||
call assert_fails('let &scrolljump .= "j"', 'E521:')
|
||||
call assert_fails('let &scrolljump .= "j"', ['E734:', 'E734:'])
|
||||
set scrolljump&vim
|
||||
|
||||
let &foldlevelstart = 2
|
||||
|
||||
Reference in New Issue
Block a user