mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Normalize path before quoting it
This commit is contained in:
@@ -273,10 +273,11 @@ 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
|
||||||
|
let temp = FugitiveGitPath(temp)
|
||||||
if temp =~# '\s'
|
if temp =~# '\s'
|
||||||
let temp = '"' . temp . '"'
|
let temp = '"' . temp . '"'
|
||||||
endif
|
endif
|
||||||
return FugitiveGitPath(temp)
|
return temp
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DoAutocmd(...) abort
|
function! s:DoAutocmd(...) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user