From e5f8d8ef049b43d20eaf27b4f143bcf808f6cb24 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Mon, 21 Aug 2023 23:24:30 +0200 Subject: create separate timer for redraw requests (#8023) * create separate timer for redraw requests * Update helix-view/src/editor.rs Co-authored-by: Michael Davis --------- Co-authored-by: Michael Davis --- helix-term/src/application.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-term') 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; -- cgit v1.2.3-70-g09d2