comparison src/testdir/test_eval_stuff.vim @ 25495:7144d2ffc86b v8.2.3284

patch 8.2.3284: no error for insert() or remove() changing a locked blob Commit: https://github.com/vim/vim/commit/80d7395dcfe96158428da6bb3d28a6eee1244e28 Author: Sean Dewar <seandewar@users.noreply.github.com> Date: Wed Aug 4 19:25:54 2021 +0200 patch 8.2.3284: no error for insert() or remove() changing a locked blob Problem: No error for insert() or remove() changing a locked blob. Solution: Check a blob is not locked before changing it. (Sean Dewar, closes #8696)
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Aug 2021 19:30:04 +0200
parents 21ec48d542a8
children 360a6a1ca9dd
comparison
equal deleted inserted replaced
25494:bdb60211e4d3 25495:7144d2ffc86b
63 call assert_fails("let v:oldfiles=''", 'E963:') 63 call assert_fails("let v:oldfiles=''", 'E963:')
64 call assert_equal(v_o, v:oldfiles) 64 call assert_equal(v_o, v:oldfiles)
65 endfunc 65 endfunc
66 66
67 func Test_for_invalid() 67 func Test_for_invalid()
68 call assert_fails("for x in 99", 'E714:') 68 call assert_fails("for x in 99", 'E1098:')
69 call assert_fails("for x in function('winnr')", 'E714:') 69 call assert_fails("for x in function('winnr')", 'E1098:')
70 call assert_fails("for x in {'a': 9}", 'E714:') 70 call assert_fails("for x in {'a': 9}", 'E1098:')
71 71
72 if 0 72 if 0
73 /1/5/2/s/\n 73 /1/5/2/s/\n
74 endif 74 endif
75 redraw 75 redraw