Permalink
Browse files

Fixed directory/filename with spaces

  • Loading branch information...
megaannum
megaannum committed Aug 28, 2012
1 parent 108716e commit 42edec931e57358fbe43cd5506dffc3b3abe2f5d
Showing with 2 additions and 1 deletion.
  1. +1 −1 autoload/forms/dialog/filebrowser.vim
  2. +1 −0 autoload/forms/menu.vim
@@ -37,7 +37,7 @@
function! forms#dialog#filebrowser#Make(...)
function! V7MakeChoices(dir)
- let files = split(globpath(a:dir, "*"))
+ let files = split(globpath(a:dir, "*"), '\n')
let flist = []
let dlist = [["../", 0]]
let cnt = 1
View
@@ -147,6 +147,7 @@ function! forms#menu#MakeFileMenu()
let f = forms#dialog#filebrowser#Make(a:title)
call forms#log("forms#menu#MakeFileMenu.BrowserAction f=".f)
if f != ''
+ let f = substitute(f, ' ', '\\ ', "g")
execute ':'.a:cmd.f
endif
endfunction

0 comments on commit 42edec9

Please sign in to comment.