From c00ebd75ac23f4080c0d0bf9453b16304a3fb316 Mon Sep 17 00:00:00 2001 From: KabbAmine Date: Thu, 7 Jul 2016 01:50:38 +0400 Subject: [PATCH] Match printable character in git status With `LANG=fr_FR.UTF-8`, a non-breakable space character is added to the text of git status, this commit allows matching it. Closes #815 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 90f123f..805518a 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2840,7 +2840,7 @@ function! s:cfile() abort elseif getline('.') =~# '^#\trenamed:.* -> ' let file = '/'.matchstr(getline('.'),' -> \zs.*') return [file] - elseif getline('.') =~# '^#\t\(\k\| \)\+: *.' + elseif getline('.') =~# '^#\t\(\k\| \)\+\p\?: *.' let file = '/'.matchstr(getline('.'),': *\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$') return [file] elseif getline('.') =~# '^#\t.'