# HG changeset patch # User Ludovic Chabant # Date 1424468119 28800 # Node ID 2e38e754c8963fdba4d527ce4f52fa438cd21eb9 # Parent 7da11e02977391513169d166f5ebbe9c1d030627 Correctly escape filename when opening a buffer from the status window. diff -r 7da11e029773 -r 2e38e754c896 plugin/lawrencium.vim --- 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