mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Support edit script when temp dir name contains space
Looks like GIT_EDITOR supports quotes now. Resolves: https://github.com/tpope/vim-fugitive/issues/2255
This commit is contained in:
@@ -273,6 +273,9 @@ function! s:TempScript(...) abort
|
|||||||
if !filereadable(temp)
|
if !filereadable(temp)
|
||||||
call writefile(['#!/bin/sh'] + a:000, temp)
|
call writefile(['#!/bin/sh'] + a:000, temp)
|
||||||
endif
|
endif
|
||||||
|
if temp =~# '\s'
|
||||||
|
let temp = '"' . temp . '"'
|
||||||
|
endif
|
||||||
return FugitiveGitPath(temp)
|
return FugitiveGitPath(temp)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user