diff options
author | Yee Cheng Chin <ychin.git@gmail.com> | 2022-10-10 11:46:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-10 11:46:16 +0100 |
commit | 4282633ba63f6e11f2fe42c4b7758dace184f30d (patch) | |
tree | 529b9b35b2358aa7247ad4029348dabaaffc0262 /runtime | |
parent | f167c7b42476f8ab5b32c3c5ccbdca914316e96b (diff) |
patch 9.0.0710: quitting/unloading/hiding a terminal does not work properlyv9.0.0710
Problem: Quitting/unloading/hiding a terminal buffer does not always work
properly.
Solution: Avoid that ":q!" leaves an empty buffer behind. ":bunload!" also
kills the job and unloads the buffer. ":hide" does not unload the
buffer. (Yee Cheng Chin, closes #11323)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/terminal.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index 0b94f8a043..4d02558e48 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -288,9 +288,8 @@ way to kill or interrupt the job. For example: > So long as the job is running the window behaves like it contains a modified buffer. Trying to close the window with `CTRL-W :quit` fails. When using -`CTRL-W :quit!` the job is ended. The text in the window is lost. The buffer -still exists, but getting it in a window with `:buffer` will show an empty -buffer. +`CTRL-W :quit!` the job is ended. The text in the window is lost, the buffer +is deleted. With `CTRL-W :bunload!` the buffer remains but will be empty. Trying to close the window with `CTRL-W :close` also fails. Using `CTRL-W :close!` will close the window and make the buffer hidden. |