aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-05-02 07:49:07 -0700
committerGitHub <noreply@github.com>2024-05-02 07:49:07 -0700
commite5c69df679159cd56fe34d6fc66a898bed9a87d0 (patch)
treec2b20f0b3581f8e861134c177489ff294be911ea /runtime/doc
parent350d81856473b45100d6b0e5920b757df1b4ad27 (diff)
parent037ea6e786b5d05f4a8965e4c2ba6aa60ec7c01a (diff)
downloadrneovim-e5c69df679159cd56fe34d6fc66a898bed9a87d0.tar.gz
rneovim-e5c69df679159cd56fe34d6fc66a898bed9a87d0.tar.bz2
rneovim-e5c69df679159cd56fe34d6fc66a898bed9a87d0.zip
Merge #28101 nvim__redraw
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/api.txt29
-rw-r--r--runtime/doc/various.txt6
2 files changed, 34 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index d15230ba2d..86f4c3875c 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1566,6 +1566,35 @@ nvim__invalidate_glyph_cache() *nvim__invalidate_glyph_cache()*
For testing. The condition in schar_cache_clear_if_full is hard to reach,
so this function can be used to force a cache clear in a test.
+nvim__redraw({opts}) *nvim__redraw()*
+ EXPERIMENTAL: this API may change in the future.
+
+ Instruct Nvim to redraw various components.
+
+ Parameters: ~
+ • {opts} Optional parameters.
+ • win: Target a specific |window-ID| as described below.
+ • buf: Target a specific buffer number as described below.
+ • flush: Update the screen with pending updates.
+ • valid: When present mark `win`, `buf`, or all windows for
+ redraw. When `true`, only redraw changed lines (useful for
+ decoration providers). When `false`, forcefully redraw.
+ • range: Redraw a range in `buf`, the buffer in `win` or the
+ current buffer (useful for decoration providers). Expects a
+ tuple `[first, last]` with the first and last line number of
+ the range, 0-based end-exclusive |api-indexing|.
+ • cursor: Immediately update cursor position on the screen in
+ `win` or the current window.
+ • statuscolumn: Redraw the 'statuscolumn' in `buf`, `win` or
+ all windows.
+ • statusline: Redraw the 'statusline' in `buf`, `win` or all
+ windows.
+ • winbar: Redraw the 'winbar' in `buf`, `win` or all windows.
+ • tabline: Redraw the 'tabline'.
+
+ See also: ~
+ • |:redraw|
+
nvim__stats() *nvim__stats()*
Gets internal stats.
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index aa05d2bbb2..d41bdb5b00 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -14,6 +14,7 @@ Various commands *various*
*CTRL-L*
CTRL-L Clears and redraws the screen. The redraw may happen
later, after processing typeahead.
+ See also |nvim__redraw()|.
*CTRL-L-default*
By default, also clears search highlighting
|:nohlsearch| and updates diffs |:diffupdate|.
@@ -21,6 +22,7 @@ CTRL-L Clears and redraws the screen. The redraw may happen
*:mod* *:mode*
:mod[e] Clears and redraws the screen.
+ See also |nvim__redraw()|.
*:redr* *:redraw*
:redr[aw][!] Redraws pending screen updates now, or the entire
@@ -28,6 +30,7 @@ CTRL-L Clears and redraws the screen. The redraw may happen
|:mode| or |CTRL-L|.
Useful to update the screen during a script or
function (or a mapping if 'lazyredraw' set).
+ See also |nvim__redraw()|.
*:redraws* *:redrawstatus*
:redraws[tatus][!] Redraws the status line and window bar of the current
@@ -35,11 +38,12 @@ CTRL-L Clears and redraws the screen. The redraw may happen
included. Redraws the commandline instead if it contains
the 'ruler'. Useful if 'statusline' or 'winbar' includes
an item that doesn't cause automatic updating.
+ See also |nvim__redraw()|.
*:redrawt* *:redrawtabline*
:redrawt[abline] Redraw the tabline. Useful to update the tabline when
'tabline' includes an item that doesn't trigger
- automatic updating.
+ automatic updating. See also |nvim__redraw()|.
*N<Del>*
<Del> When entering a number: Remove the last digit.