The plugin only lists files contained in a specific directory and returns that by ctrlp#obsession#init()
function! ctrlp#obsession#init()
let flist = glob(fnamemodify(g:prosession_dir, ':p').'*.vim', 0, 1)
let flist = map(flist, "fnamemodify(v:val, ':t:r')")
let flist = map(flist, "substitute(v:val, '%', '/', 'g')")
return flist
endfunction
This runs fine if called from an empty buffer. If you already loaded a file and start the ex-command from it, you get all files listed except the very last one.
This seems a bug in CtrlP itself.
VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 13 2018 21:26:07)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-54
The plugin found at https://github.com/gikmx/vim-ctrlposession misses the last session.
The plugin only lists files contained in a specific directory and returns that by ctrlp#obsession#init()
This runs fine if called from an empty buffer. If you already loaded a file and start the ex-command from it, you get all files listed except the very last one.
This seems a bug in CtrlP itself.