• 1271 c1283a292c

    Ghost released this 2020-03-09 20:52:34 +00:00 | 641 commits to master since this release

    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 #131

    Downloads