Closed markwu closed 4 years ago
It seems I have to disable s:persist()
when enter buffer with
let g:obsession_no_bufenter = 1
to avoid this error.
Seems no way to identify command line window, I just use silent avoid those error messages.
autocmd BufEnter *
\ if !get(g:, 'obsession_no_bufenter') |
\ silent! exe s:persist() |
\ endif
Deleted my comments since I'm a dolt- silent! should work fine.
I tested it, but still get the same error messages.
I thought I tested it too but I guess not. Looks like 'buftype'
hasn't been set yet. God, why is this so stupid.
Thanks, I confirmed it fixed.
Weird error messages never happened before.
reproduce steps
q:
to open command line window:mksession
to make a sessionmy platform
macOS 10.14.6 head version of vim, neovim, macvim