Mercurial > vim-lawrencium
changeset 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 | 7cfe9ba2c7dd |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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