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:
@@ -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
|
||||
|
Reference in New Issue
Block a user