comparison src/testdir/test_let.vim @ 18348:9ea364ccf216 v8.1.2168

patch 8.1.2168: heredoc assignment not skipped in if block Commit: https://github.com/vim/vim/commit/b1ba9abcb385b0a5355788a7eefef78ec68d2f65 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 16 23:34:42 2019 +0200 patch 8.1.2168: heredoc assignment not skipped in if block Problem: Heredoc assignment not skipped in if block. Solution: Check if "skip" is set. (closes https://github.com/vim/vim/issues/5063)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Oct 2019 23:45:03 +0200
parents 9088fafff9b3
children c0cd979000f9
comparison
equal deleted inserted replaced
18347:e4e6e0bfc526 18348:9ea364ccf216
293 let var1 =<< trim END 293 let var1 =<< trim END
294 something 294 something
295 app 295 app
296 END 296 END
297 call assert_equal(['something', 'app'], var1) 297 call assert_equal(['something', 'app'], var1)
298 endfunc 298
299 let check = []
300 if 0
301 let check =<< trim END
302 from heredoc
303 END
304 endif
305 call assert_equal([], check)
306 endfunc