From 9aed3c09c9a24529d147c367839ba4f2569c95b7 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 12 Apr 2018 14:02:10 +0200 Subject: [PATCH] Fix checking out files in subdirectories --- vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index af9fef8..9d391ab 100644 --- a/vimrc +++ b/vimrc @@ -390,9 +390,10 @@ function! s:file_at_revision(rev) let l:fname = b:git_original_file let l:ftail = fnamemodify(b:git_original_file, ":t") else - let l:fname = expand("%:t") + let l:fname = expand("%") let l:ftail = expand("%:t") end + let l:fname = substitute(l:fname, "\\\\", "/", "g") let l:ftype = &filetype ene!