0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-03-11 19:21:53 +01:00
parent 38a3d6c960
commit a95ab32120
3 changed files with 13 additions and 15 deletions

View File

@@ -319,7 +319,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)