aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-21 21:23:04 -0400
committerGitHub <noreply@github.com>2021-04-21 21:23:04 -0400
commit4570d04b16b4de0731455681f4db4bd27c77fc4c (patch)
tree4e06c4bfbde3a5db8ced56f9d2a4f7f7a2f6e772 /runtime
parentc37eaf574673d1cc7c7cb1a2c40c2ac45514afb5 (diff)
parentff198bb78a34f4b388efe1b45930031b39ae5810 (diff)
downloadrneovim-4570d04b16b4de0731455681f4db4bd27c77fc4c.tar.gz
rneovim-4570d04b16b4de0731455681f4db4bd27c77fc4c.tar.bz2
rneovim-4570d04b16b4de0731455681f4db4bd27c77fc4c.zip
Merge pull request #14411 from seandewar/vim-8.2.1588
vim-patch:8.2.1588 - port `prompt_getprompt()`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt8
-rw-r--r--runtime/doc/usr_41.txt1
2 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index cff87b2fed..b8dcfd0ff4 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2309,6 +2309,7 @@ perleval({expr}) any evaluate |perl| expression
pow({x}, {y}) Float {x} to the power of {y}
prevnonblank({lnum}) Number line nr of non-blank line <= {lnum}
printf({fmt}, {expr1}...) String format text
+prompt_getprompt({buf}) String get prompt text
prompt_setcallback({buf}, {expr}) none set prompt callback function
prompt_setinterrupt({buf}, {text}) none set prompt interrupt function
prompt_setprompt({buf}, {text}) none set prompt text
@@ -6746,6 +6747,13 @@ printf({fmt}, {expr1} ...) *printf()*
of "%" items. If there are not sufficient or too many
arguments an error is given. Up to 18 arguments can be used.
+prompt_getprompt({buf}) *prompt_getprompt()*
+ Returns the effective prompt text for buffer {buf}. {buf} can
+ be a buffer name or number. See |prompt-buffer|.
+
+ If the buffer doesn't exist or isn't a prompt buffer, an empty
+ string is returned.
+
prompt_setcallback({buf}, {expr}) *prompt_setcallback()*
Set prompt callback for buffer {buf} to {expr}. When {expr}
is an empty string the callback is removed. This has only
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 21f5dcc815..41948f577e 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -978,6 +978,7 @@ Tags: *tag-functions*
settagstack() modify the tag stack of a window
Prompt Buffer: *promptbuffer-functions*
+ prompt_getprompt() get the effective prompt text for a buffer
prompt_setcallback() set prompt callback for a buffer
prompt_setinterrupt() set interrupt callback for a buffer
prompt_setprompt() set the prompt text for a buffer