mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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:
@@ -357,7 +357,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