tpope / vim-obsession

obsession.vim: continuously updated session files
http://www.vim.org/scripts/script.php?script_id=4472
1.75k stars 68 forks source link

Globbing relies on a trailing path separator character #16

Closed nkmathew closed 10 years ago

nkmathew commented 10 years ago

Session name completion doesn't seem to work when the path set in g:prosession_dir doesn't have a trailing path separator. This "~\vimfiles\sessions\" works while "~\vimfiles\sessions" doesn't. Changing line 68 to:

    let flist = glob(g:prosession_dir . flead . '/*.vim', 0, 1)

seems to solve it.(Disclaimer: very little Vimscript skills)

nkmathew commented 10 years ago

Sorry, the issue concerns vim-prosession not vim-obsession. Damn, don't know how I ended up here.