vim-patch:8.0.0444: diffpatch fails when the file name has a quote

Problem:    Diffpatch fails when the file name has a quote.
Solution:   Escape the name properly. (zetzei)

a95ab32120
This commit is contained in:
Justin M. Keyes
2018-01-21 10:36:14 +01:00
parent 456cf72974
commit ab279c6fb8
2 changed files with 25 additions and 28 deletions

View File

@@ -502,7 +502,7 @@ func Test_diffpatch()
new
call assert_fails('diffpatch Xpatch', 'E816:')
for name in ['Xpatch', 'Xpatch$HOME']
for name in ['Xpatch', 'Xpatch$HOME', 'Xpa''tch']
call setline(1, ['1', '2', '3'])
if name != 'Xpatch'
call rename('Xpatch', name)