Преглед на файлове

Fix "last modified" entries not showing with nossl

On Windows with 'noshellslash', the 'dir' section would never show up due to the
unescaped backslashes in `cwd`.

escape() backslashes (if they exist) so that match() will pass properly.
ZeroKnight преди 11 години
родител
ревизия
2872ab750b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -271,7 +271,7 @@ function! s:show_dir(cnt) abort
   let cnt     = a:cnt
   let num     = s:numfiles
   let entries = {}
-  let cwd     = getcwd()
+  let cwd     = escape(getcwd(), '\')
   let files   = filter(map(copy(v:oldfiles), 'resolve(fnamemodify(v:val, ":p"))'), 'match(v:val, cwd) == 0')
 
   if !empty(files)