You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you've read a file (current buffer is a file) the last entry is removed by the list and you can not choose that session to load.
The function pymatcher#ShouldHideCurrentFile will return true, cause ctrlp is giving you the actual file (from the current buffer). This leads to the "remove" call in PyMatch. But the file isn't in the list (because the list is not a file list, its a session list), so your index() call returns -1, and so the remove deletes the last entry in the list.
The plugin found at https://github.com/gikmx/vim-ctrlposession lists all sessions. The content of the entries are names of directories.
If you've read a file (current buffer is a file) the last entry is removed by the list and you can not choose that session to load.
The function pymatcher#ShouldHideCurrentFile will return true, cause ctrlp is giving you the actual file (from the current buffer). This leads to the "remove" call in PyMatch. But the file isn't in the list (because the list is not a file list, its a session list), so your index() call returns -1, and so the remove deletes the last entry in the list.
This can be a fix:
The text was updated successfully, but these errors were encountered: