mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
LibLine: Avoid refreshing the entire line when inserting at the end
This patchset allows the editor to avoid redrawing the entire line when the changes cause no unrecoverable style updates, and are at the end of the line (this applies to most normal typing situations). Cases that this does not resolve: - When the cursor is not at the end of the buffer - When a display refresh changes the styles on the already-drawn parts of the line - When the prompt has not yet been drawn, or has somehow changed Fixes #5296.
This commit is contained in:
parent
101c6b01ed
commit
074e2ffdfd
5 changed files with 151 additions and 41 deletions
|
@ -168,6 +168,7 @@ set(DEBUG_AUTOCOMPLETE ON)
|
|||
set(FILE_WATCHER_DEBUG ON)
|
||||
set(SYSCALL_1_DEBUG ON)
|
||||
set(RSA_PARSE_DEBUG ON)
|
||||
set(LINE_EDITOR_DEBUG ON)
|
||||
|
||||
# False positive: DEBUG is a flag but it works differently.
|
||||
# set(DEBUG ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue