mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53: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)
|
||||
call writefile(['#!/bin/sh'] + a:000, temp)
|
||||
endif
|
||||
if temp =~# '\s'
|
||||
let temp = '"' . temp . '"'
|
||||
endif
|
||||
return FugitiveGitPath(temp)
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user