mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 08:31:16 -03:00
Factor repainting decions from readline commands better in the reader
When typing into the command line, some actions should trigger repainting, others should kick off syntax highlighting or autosuggestions, etc. Prior to this change, these were all triggered in an ad-hoc manner. Each possible This change centralizes the logic around repainting. After each readline command or text change, we compute the difference between what we would draw and what was last drawn, and use that to decide whether to repaint the screen. This is a fairly involved change. Bugs here would show up as failing to redraw, not reacting to a keypress, etc. However it better factors the readline command handling from the drawing.
This commit is contained in:
530
src/reader.cpp
530
src/reader.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user