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:
parent
1b71d84f58
commit
c25e9256aa
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ function! vimspector#internal#neoterm#Start( cmd, opts ) abort
|
||||||
try
|
try
|
||||||
let old_env = vimspector#internal#neoterm#PrepareEnvironment(
|
let old_env = vimspector#internal#neoterm#PrepareEnvironment(
|
||||||
\ a:opts[ 'env' ] )
|
\ a:opts[ 'env' ] )
|
||||||
|
setlocal nomodified
|
||||||
let id = termopen( a:cmd, {
|
let id = termopen( a:cmd, {
|
||||||
\ 'cwd': a:opts[ 'cwd' ],
|
\ 'cwd': a:opts[ 'cwd' ],
|
||||||
\ 'env': a:opts[ 'env' ],
|
\ 'env': a:opts[ 'env' ],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue