Procházet zdrojové kódy

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 před 11 roky
rodič
revize
2872ab750b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)