vim-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 vim/vim#3308)
f53c692240
This commit is contained in:
Jan Edmund Lazo
2019-06-22 11:41:41 -04:00
parent 450d9e6bdf
commit 25f99dde94

View File

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