summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-20 21:15:15 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-20 21:15:15 +0200
commit4d14bac8e7441368977e81266166f728105a60d4 (patch)
tree3f01c776a80d91bb2568621df4e494846ea10460 /runtime
parent4b57018ee4e6d608e3a28e0ee4fdd2f057cc0e89 (diff)
downloadvim-git-4d14bac8e7441368977e81266166f728105a60d4.tar.gz
patch 8.1.2195: Vim does not exit when the terminal window is last windowv8.1.2195
Problem: Vim does not exit when closing a terminal window and it is the last window. Solution: Exit Vim if the closed terminal window is the last one. (closes #4539)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/terminal.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index fc5031dd4..6bf04eb83 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -193,6 +193,7 @@ Command syntax ~
Supported [options] are:
++close The terminal window will close
automatically when the job terminates.
+ |terminal-close|
++noclose The terminal window will NOT close
automatically when the job terminates.
++open When the job terminates and no window
@@ -267,6 +268,12 @@ hidden, the job keeps running. The `:buffer` command can be used to turn the
current window into a terminal window. If there are unsaved changes this
fails, use ! to force, as usual.
+ *terminal-close*
+When the terminal window is closed, e.g. when the shell exits and "++close"
+argument was used, and this is the last normal Vim window, then Vim will exit.
+This is like using |:quit| in a normal window. Help and preview windows are
+not counted.
+
To have a background job run without a window, and open the window when it's
done, use options like this: >
:term ++hidden ++open make