comparison src/testdir/test_assign.vim @ 12588:5bc07e5d2c1f v8.0.1172

patch 8.0.1172: when E734 is given option is still set commit https://github.com/vim/vim/commit/2a6a6c3014e728cd01c750b0f60484d4eaf22a8c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 2 19:29:48 2017 +0200 patch 8.0.1172: when E734 is given option is still set Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Mon, 02 Oct 2017 19:30:04 +0200
parents 126405b39964
children f01eb1aed348
comparison
equal deleted inserted replaced
12587:133f06bc6ca0 12588:5bc07e5d2c1f
27 let &t_xx = "yes" 27 let &t_xx = "yes"
28 call assert_equal("yes", &t_xx) 28 call assert_equal("yes", &t_xx)
29 let &t_xx = "" 29 let &t_xx = ""
30 call assert_fails('let x = &t_xx', 'E15') 30 call assert_fails('let x = &t_xx', 'E15')
31 endfunc 31 endfunc
32
33 func Test_let_option_error()
34 let _w = &tw
35 let &tw = 80
36 call assert_fails('let &tw .= 1', 'E734')
37 call assert_equal(80, &tw)
38 let &tw = _w
39
40 let _w = &fillchars
41 let &fillchars = "vert:|"
42 call assert_fails('let &fillchars += "diff:-"', 'E734')
43 call assert_equal("vert:|", &fillchars)
44 let &fillchars = _w
45 endfunc