Skip to content

Commit

Permalink
patch 9.0.1674: help for builtin functions is not sorted properly
Browse files Browse the repository at this point in the history
Problem:    Help for builtin functions is not sorted properly.
Solution:   Put err_teapot() help in the right position.
  • Loading branch information
brammool committed Jul 7, 2023
1 parent 80adaa8 commit 416bd91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
19 changes: 10 additions & 9 deletions runtime/doc/builtin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ digraph_getlist([{listall}]) List get all |digraph|s
digraph_set({chars}, {digraph}) Boolean register |digraph|
digraph_setlist({digraphlist}) Boolean register multiple |digraph|s
echoraw({expr}) none output {expr} as-is
err_teapot() Number produce error 418
empty({expr}) Number |TRUE| if {expr} is empty
environ() Dict return environment variables
err_teapot() Number produce error 418
escape({string}, {chars}) String escape {chars} in {string} with '\'
eval({string}) any evaluate {string} into its value
eventhandler() Number |TRUE| if inside an event handler
Expand Down Expand Up @@ -2177,14 +2177,6 @@ echoraw({string}) *echoraw()*
< Use with care, you can mess up the terminal this way.


err_teapot([{expr}]) *err_teapot()*
Produce an error with number 418, needed for implementation of
RFC 2325.
If {expr} is present and it is TRUE error 503 is given,
indicating that coffee is temporarily not available.
If {expr} is present it must be a String.


empty({expr}) *empty()*
Return the Number 1 if {expr} is empty, zero otherwise.
- A |List| or |Dictionary| is empty when it does not have any
Expand All @@ -2210,6 +2202,15 @@ environ() *environ()*
use this: >
:echo index(keys(environ()), 'HOME', 0, 1) != -1
err_teapot([{expr}]) *err_teapot()*
Produce an error with number 418, needed for implementation of
RFC 2325.
If {expr} is present and it is TRUE error 503 is given,
indicating that coffee is temporarily not available.
If {expr} is present it must be a String.


escape({string}, {chars}) *escape()*
Escape the characters in {chars} that occur in {string} with a
backslash. Example: >
Expand Down
1 change: 1 addition & 0 deletions runtime/doc/usr_41.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@ Inter-process communication: *channel-functions*
json_decode() decode a JSON string to Vim types
js_encode() encode an expression to a JSON string
js_decode() decode a JSON string to Vim types
err_teapot() give error 418 or 503

Jobs: *job-functions*
job_start() start a job
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1674,
/**/
1673,
/**/
Expand Down

0 comments on commit 416bd91

Please sign in to comment.