Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When creating a terminal window in neovim, use a new buffer
neovim's termopen() replaces the buffer object in the current window with a terminal, internally, this completely breaks the buffer list. Repro: * Create test.vim: ``` vsplit call termopen( '/bin/bash', { 'cwd': getcwd() } ) call bufload( expand( '<sfile>' ) ) ``` Then: * `nvim -Nu NONE test.vim` * `:source %` Error is "Invald buffer name 'test.vim'" Anyway, the correct thing to do is to create a _new_ buffer before making it into a terminal (vnew, new) rather than a split of the current one. This was only working before because the CodeView window never had any buffer in it and was broken by the change to use the current buffer when staring debugging. Fixes puremourning#131
- Loading branch information