Improve performance when pasting large amounts of text into readline by not redrawing on every char

This commit is contained in:
Kovid Goyal
2022-10-09 09:15:17 +05:30
parent c0f17c279e
commit 834385baff
4 changed files with 31 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ type Loop struct {
OnKeyEvent func(event *KeyEvent) error
// Called when text is received either from a key event or directly from the terminal
// Called with an empty string when bracketed paste ends
OnText func(text string, from_key_event bool, in_bracketed_paste bool) error
// Called when the terminal is resized