comparison src/testdir/test_expand_func.vim @ 22218:195a617b405a v8.2.1658

patch 8.2.1658: expand('<stack>') has trailing ".." Commit: https://github.com/vim/vim/commit/a810db3f17d477e057059c72062c08fd97bcea43 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 11 17:59:23 2020 +0200 patch 8.2.1658: expand('<stack>') has trailing ".." Problem: Expand('<stack>') has trailing "..". Solution: Remove the "..". (closes https://github.com/vim/vim/issues/6927)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Sep 2020 18:00:03 +0200
parents a607f02fd17a
children dfe18756f2ad
comparison
equal deleted inserted replaced
22217:50b1e250f302 22218:195a617b405a
56 " comment here 56 " comment here
57 let g:stack_value = expand('<stack>') 57 let g:stack_value = expand('<stack>')
58 END 58 END
59 call writefile(lines, 'Xstack') 59 call writefile(lines, 'Xstack')
60 source Xstack 60 source Xstack
61 call assert_match('\<Xstack\[2\]', g:stack_value) 61 call assert_match('\<Xstack\[2\]$', g:stack_value)
62 call delete('Xstack') 62 call delete('Xstack')
63 endfunc 63 endfunc
64 64
65 func Test_expand_slnum() 65 func Test_expand_slnum()
66 call assert_equal(6, s:slnum) 66 call assert_equal(6, s:slnum)