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)
|
||||
call writefile(['#!/bin/sh'] + a:000, temp)
|
||||
endif
|
||||
let temp = FugitiveGitPath(temp)
|
||||
if temp =~# '\s'
|
||||
let temp = '"' . temp . '"'
|
||||
endif
|
||||
return FugitiveGitPath(temp)
|
||||
return temp
|
||||
endfunction
|
||||
|
||||
function! s:DoAutocmd(...) abort
|
||||
|
||||
Reference in New Issue
Block a user