From 618620b36907bb2cbe29cd0e737efad9f651a00d Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Fri, 7 Jul 2023 23:46:34 +0200 Subject: use redraw handle for debouncing LSP messages (#7538) --- helix-view/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index f5ed7b8f..630ea5cf 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -1705,7 +1705,7 @@ impl Editor { _ = self.redraw_handle.0.notified() => { if !self.needs_redraw{ self.needs_redraw = true; - let timeout = Instant::now() + Duration::from_millis(96); + let timeout = Instant::now() + Duration::from_millis(33); if timeout < self.idle_timer.deadline(){ self.idle_timer.as_mut().reset(timeout) } -- cgit v1.2.3-70-g09d2