aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/loader.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-01-05 13:50:23 +0800
committerGitHub <noreply@github.com>2026-01-05 13:50:23 +0800
commit366251a5d2eb9e3b5bd1d1a4471fe5580df28333 (patch)
tree9321e193810f3cf61760e9dfd693505b0ff091a8 /runtime/lua/vim/loader.lua
parent08d7744e13bca2ea069e927ecdfc78ecfa4214fc (diff)
downloadrneovim-366251a5d2eb9e3b5bd1d1a4471fe5580df28333.tar.gz
rneovim-366251a5d2eb9e3b5bd1d1a4471fe5580df28333.tar.bz2
rneovim-366251a5d2eb9e3b5bd1d1a4471fe5580df28333.zip
fix(terminal): avoid multiple terminals writing to same buffer (#37219)
Problem: Calling termopen() or nvim_open_term() on a buffer with an existing terminal leads to two terminals writing to the same buffer if the terminal job is still running, or memory leak if the terminal job has exited. Solution: Close the terminal if the terminal job has exited, otherwise report an error. For nvim_open_term() also don't write a closed terminal's buffer content to the PTY.
Diffstat (limited to 'runtime/lua/vim/loader.lua')
0 files changed, 0 insertions, 0 deletions