0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0272: options test fails if temp var ends in slash

Problem:    Options test fails if temp var ends in slash. (Tom Briden)
Solution:   Check for optional slash. (closes #3308)
This commit is contained in:
Bram Moolenaar
2018-08-11 17:53:04 +02:00
parent b0acacd767
commit f53c692240
2 changed files with 3 additions and 1 deletions

View File

@@ -344,7 +344,7 @@ func Test_backupskip()
for var in ['$TEMPDIR', '$TMP', '$TEMP']
if exists(var)
let varvalue = substitute(expand(var), '\\', '/', 'g')
call assert_match(varvalue . '.\*', bskvalue)
call assert_match(varvalue . '/\=\*', bskvalue)
endif
endfor
endfunc