Mercurial > vim
diff src/testdir/test_ins_complete.vim @ 22397:0a5770061295 v8.2.1747
patch 8.2.1747: result of expand() unexpectedly depends on 'completeslash'
Commit: https://github.com/vim/vim/commit/8f187fc6304222956f94a700758a490cc8c0af99
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 26 18:47:11 2020 +0200
patch 8.2.1747: result of expand() unexpectedly depends on 'completeslash'
Problem: Result of expand() unexpectedly depends on 'completeslash'.
Solution: Temporarily reset 'completeslash'. (Yasuhiro Matsumoto,
closes #7021)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Sep 2020 19:00:03 +0200 |
parents | 80a000b09cb0 |
children | 58cdc5d7f143 |
line wrap: on
line diff
--- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -363,12 +363,12 @@ endfunc " Test for insert path completion with completeslash option func Test_ins_completeslash() CheckMSWindows - + call mkdir('Xdir') let orig_shellslash = &shellslash set cpt& new - + set noshellslash set completeslash= @@ -654,4 +654,17 @@ func Test_complete_cmdline() close! endfunc +func Test_issue_7021() + CheckMSWindows + + let orig_shellslash = &shellslash + set noshellslash + + set completeslash=slash + call assert_false(expand('~') =~ '/') + + let &shellslash = orig_shellslash + set completeslash= +endfunc + " vim: shiftwidth=2 sts=2 expandtab