From c4146ed3edfe10b850afb20a7777ebba2dbf8dd4 Mon Sep 17 00:00:00 2001 From: Jerome Reybert <jreybert@gmail.com> Date: Tue, 24 Jan 2017 17:37:39 +0100 Subject: [PATCH] plugin/magit.vim: handle old vim ~ 7.4-0 fnameescape behavior on Windows (ref #108) --- plugin/magit.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/magit.vim b/plugin/magit.vim index 37b9c24..c1d2c6a 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -636,7 +636,8 @@ let s:mg_display_functions = { " VimagitUpdateFile event is raised function! magit#update_buffer(...) 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 return endif -- GitLab