diff plugin/lawrencium.vim @ 117:2e38e754c896

Correctly escape filename when opening a buffer from the status window.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 20 Feb 2015 13:35:19 -0800
parents 7da11e029773
children 4ca40abecc2a
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Sat Jan 24 13:27:42 2015 -0800
+++ b/plugin/lawrencium.vim	Fri Feb 20 13:35:19 2015 -0800
@@ -1089,7 +1089,7 @@
         tabnew
         let l:cleanupbufnr = bufnr('%')
     endif
-    execute 'edit ' . escape(l:filename, ' \')
+    execute 'edit ' . fnameescape(l:filename)
     if l:cleanupbufnr >= 0
         execute 'bdelete ' . l:cleanupbufnr
     endif