mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
fix(ui-ext): backport win_viewport fixes to release-0.9
This commit is contained in:
@@ -199,7 +199,7 @@ the editor.
|
||||
The following keys are deprecated:
|
||||
|
||||
`hl_id`: Use `attr_id` instead.
|
||||
`hl_lm`: Use `attr_id_lm` instead.
|
||||
`id_lm`: Use `attr_id_lm` instead.
|
||||
|
||||
["option_set", name, value] ~
|
||||
UI-related option changed, where `name` is one of:
|
||||
@@ -336,7 +336,7 @@ numerical highlight ids to the actual attributes.
|
||||
|
||||
Highlights are always transmitted both for both the RGB format and as
|
||||
terminal 256-color codes, as the `rgb_attr` and `cterm_attr` parameters
|
||||
respectively. The |ui-rgb| option has no effect effect anymore.
|
||||
respectively. The |ui-rgb| option has no effect anymore.
|
||||
Most external UIs will only need to store and use the `rgb_attr`
|
||||
attributes.
|
||||
|
||||
@@ -352,7 +352,7 @@ numerical highlight ids to the actual attributes.
|
||||
|ui-hlstate| extension explained below.
|
||||
|
||||
["hl_group_set", name, hl_id] ~
|
||||
The bulitin highlight group `name` was set to use the attributes `hl_id`
|
||||
The built-in highlight group `name` was set to use the attributes `hl_id`
|
||||
defined by a previous `hl_attr_define` call. This event is not needed
|
||||
to render the grids which use attribute ids directly, but is useful
|
||||
for a UI who want to render its own elements with consistent
|
||||
@@ -434,7 +434,7 @@ numerical highlight ids to the actual attributes.
|
||||
+-------------------------+
|
||||
<
|
||||
`cols` is always zero in this version of Nvim, and reserved for future
|
||||
use.
|
||||
use.
|
||||
|
||||
Note when updating code from |ui-grid-old| events: ranges are
|
||||
end-exclusive, which is consistent with API conventions, but different
|
||||
@@ -640,7 +640,8 @@ tabs.
|
||||
the top line of a window moved since `win_viewport` was last emitted.
|
||||
It is intended to be used to implement smooth scrolling. For this
|
||||
purpose it only counts "virtual" or "displayed" lines, so folds
|
||||
only count as one line.
|
||||
only count as one line. When scrolling more than a full screen it is
|
||||
an approximate value.
|
||||
|
||||
All updates, such as `grid_line`, in a batch affects the new viewport,
|
||||
despite the fact that `win_viewport` is received after the updates.
|
||||
@@ -651,7 +652,7 @@ tabs.
|
||||
|
||||
["win_extmark", grid, win, ns_id, mark_id, row, col] ~
|
||||
Updates the position of an extmark which is currently visible in a
|
||||
window. Only emitted if the mark has the `ui_watched` attribute.
|
||||
window. Only emitted if the mark has the `ui_watched` attribute.
|
||||
|
||||
==============================================================================
|
||||
Popupmenu Events *ui-popupmenu*
|
||||
@@ -723,7 +724,7 @@ For command-line 'wildmenu' UI events, activate |ui-popupmenu|.
|
||||
to distinguish different command lines active at the same time. The
|
||||
first invoked command line has level 1, the next recursively-invoked
|
||||
prompt has level 2. A command line invoked from the |cmdline-window|
|
||||
has a higher level than than the edited command line.
|
||||
has a higher level than the edited command line.
|
||||
|
||||
["cmdline_pos", pos, level] ~
|
||||
Change the cursor position in the cmdline.
|
||||
|
||||
Reference in New Issue
Block a user