aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-11-03 14:40:22 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2018-11-11 09:54:03 +0100
commit520ec3dbfd208c99f9b184ab0a4baeab9a93b556 (patch)
treea2322de3b3b5bde4eb9ba5157818d537c86db85f /runtime
parentf8639dc99cb085432b14da086af316176152bc1f (diff)
downloadrneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.tar.gz
rneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.tar.bz2
rneovim-520ec3dbfd208c99f9b184ab0a4baeab9a93b556.zip
UI/TUI: improvements and cleanups for scrolling and clearing
- TUI: _never_ rely on BCE for implicit clearing, only explicit commands. - TUI: use unibi_erase_chars when possible. - TUI: use end-exclusive ranges for invalid and cleared areas - screen: scrolling leaves scrolled in aree undefined. This is a conservative change, a client assuming the old semantics will still behave correctly. - screen: factor out vsep handling from line drawing. This is needed anyway for the multigrid refactor. - screen: simplifications of win_do_lines
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/ui.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt
index 3477e53545..c021f236c8 100644
--- a/runtime/doc/ui.txt
+++ b/runtime/doc/ui.txt
@@ -325,14 +325,14 @@ numerical highlight `id`:s to the actual attributes.
+-------------------------+ src_top |
| src (moved up) and dst | |
|-------------------------| dst_bot |
- | src (cleared) | |
+ | src (invalid) | |
+=========================+ src_bot
<
If `rows` is less than zero, move a rectangle in the SR down, this can
happen while scrolling up.
>
+=========================+ src_top
- | src (cleared) | |
+ | src (invalid) | |
|------------------------ | dst_top |
| src (moved down) and dst| |
+-------------------------+ src_bot |
@@ -348,6 +348,10 @@ numerical highlight `id`:s to the actual attributes.
end-exclusive, which is consistent with API conventions, but different
from `set_scroll_region` which was end-inclusive.
+ The scrolled-in area will be filled using |ui-event-grid_line| directly
+ after the scroll event. The UI thus doesn't need to clear this area as
+ part of handling the scroll event.
+
==============================================================================
Legacy Grid Events (cell based) *ui-grid-old*