aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-08-13 05:23:15 -0700
committerGitHub <noreply@github.com>2023-08-13 05:23:15 -0700
commit0fe921663f1be9e32afa66874fda1ef15142a47e (patch)
tree15c47c28238d0a3b84eb04e0401ccaf30f9daa43 /runtime/doc
parent8179d68dc1a90f47bfb307d73e71adc98883ae00 (diff)
parent3fb372eba48796b5d0a7758f91e168be8e70e183 (diff)
downloadrneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.tar.gz
rneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.tar.bz2
rneovim-0fe921663f1be9e32afa66874fda1ef15142a47e.zip
Merge #15440 close 'shell' :terminal automatically
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/news.txt4
-rw-r--r--runtime/doc/various.txt4
-rw-r--r--runtime/doc/vim_diff.txt2
3 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 3aacf1e8ee..e9c493479c 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -190,6 +190,10 @@ The following changes to existing APIs or features add new behavior.
supports it, unless |'keywordprg'| was customized before calling
|vim.lsp.start()|.
+• Terminal buffers started with no arguments (and use 'shell') close
+ automatically if the job exited without error, eliminating the (often
+ unwanted) "[Process exited 0]" message.
+
==============================================================================
REMOVED FEATURES *news-removed*
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 52e8f4d86c..33f57580c7 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -249,6 +249,10 @@ gx Opens the current filepath or URL (decided by
Fails if changes have been made to the current buffer,
unless 'hidden' is set.
+ If {cmd} is omitted, and the 'shell' job exits with no
+ error, the buffer is closed automatically
+ |default-autocmds|.
+
To enter |Terminal-mode| automatically: >
autocmd TermOpen * startinsert
<
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 9569c38b85..d288f31828 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -133,6 +133,8 @@ remove them and ":autocmd {group}" to see how they're defined.
nvim_terminal:
- BufReadCmd: Treats "term://" buffers as |terminal| buffers. |terminal-start|
+- TermClose: A |terminal| buffer started with no arguments (which thus uses
+ 'shell') and which exits with no error is closed automatically.
nvim_cmdwin:
- CmdwinEnter: Limits syntax sync to maxlines=1 in the |cmdwin|.