Skip to content
Snippets Groups Projects
Commit c4146ed3 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

plugin/magit.vim: handle old vim ~ 7.4-0 fnameescape behavior on Windows (ref #108)

parent 97654fb2
No related branches found
No related tags found
No related merge requests found
...@@ -636,7 +636,8 @@ let s:mg_display_functions = { ...@@ -636,7 +636,8 @@ let s:mg_display_functions = {
" VimagitUpdateFile event is raised " VimagitUpdateFile event is raised
function! magit#update_buffer(...) function! magit#update_buffer(...)
let buffer_name=bufname("%") let buffer_name=bufname("%")
if ( buffer_name !~ 'magit://.*' ) " (//|\\\\) is to handle old vim 7.4-0 fnameescape behavior on Windows
if ( buffer_name !~ "\\v^magit:(//|\\\\).*" )
echoerr "Not in magit buffer but in " . buffer_name echoerr "Not in magit buffer but in " . buffer_name
return return
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment