Fix restart command in neovim when terminal in use

Neovim doesn't allow you to replace a terminal buffer if the buffer has
received some output, so we tell it that the buffer is not modified as a
hackaround.

Fixes #154
This commit is contained in:
Ben Jackson 2020-04-26 10:19:05 +01:00
commit c25e9256aa

View file

@ -60,6 +60,7 @@ function! vimspector#internal#neoterm#Start( cmd, opts ) abort
try
let old_env = vimspector#internal#neoterm#PrepareEnvironment(
\ a:opts[ 'env' ] )
setlocal nomodified
let id = termopen( a:cmd, {
\ 'cwd': a:opts[ 'cwd' ],
\ 'env': a:opts[ 'env' ],