0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -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

View File

@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
272,
/**/
271,
/**/