aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorPascal Kuthe2023-08-21 21:24:30 +0000
committerGitHub2023-08-21 21:24:30 +0000
commite5f8d8ef049b43d20eaf27b4f143bcf808f6cb24 (patch)
treef57974910bc039bb23be842699654c62e375a782 /helix-term
parent454b61cb21de818b83f89de9e31f62fad70bb1b2 (diff)
create separate timer for redraw requests (#8023)
* create separate timer for redraw requests * Update helix-view/src/editor.rs Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 3e938917..97ba0cc3 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -598,6 +598,9 @@ impl Application {
self.render().await;
}
}
+ EditorEvent::Redraw => {
+ self.render().await;
+ }
EditorEvent::IdleTimer => {
self.editor.clear_idle_timer();
self.handle_idle_timeout().await;