Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed directory/filename with spaces

  • Loading branch information...
commit 42edec931e57358fbe43cd5506dffc3b3abe2f5d 1 parent 108716e
megaannum authored
View
2  autoload/forms/dialog/filebrowser.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
1  autoload/forms/menu.vim
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.