summaryrefslogtreecommitdiffstats
path: root/runtime/doc
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2024-06-13 17:24:54 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-13 17:24:54 +0200
commita78eb25db3089b864dab8a9cc6c9e5270bf09644 (patch)
treec0c21d7aaad485d229e21a6756317989a0cd04ff /runtime/doc
parent1c296026627d7ac8195e803b4c2393c21ae659b4 (diff)
patch 9.1.0481: Vim9: term_getjob() throws an exception on errorv9.1.0481
Problem: Vim9: term_getjob() throws an exception on error Solution: Return null_job instead, when there is no job (Ernie Rael) closes: #14984 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/terminal.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 0f0b42a64b..f509ea979a 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -1,4 +1,4 @@
-*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 08
+*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 13
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -647,7 +647,8 @@ term_getcursor({buf}) *term_getcursor()*
term_getjob({buf}) *term_getjob()*
Get the Job associated with terminal window {buf}.
{buf} is used as with |term_getsize()|.
- Returns |v:null| when there is no job.
+ Returns |v:null| when there is no job. In Vim9 script, return
+ null_job when there is no job.
Can also be used as a |method|: >
GetBufnr()->term_getjob()