mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-08 21:15:23 +08:00
Never :Gedit with a trailing slash
This commit is contained in:
1 parent
c3e918072f
commit
a9a22e0e4e
1 file changed
+1
@@ -1408,6 +1408,7 @@ function! s:Edit(cmd,bang,...) abort
|
||||
catch /^fugitive:/
|
||||
return 'echoerr v:errmsg'
|
||||
endtry
|
||||
let file = s:sub(file, '/$', '')
|
||||
if a:cmd ==# 'read'
|
||||
return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user