diff options
author | Pascal Kuthe | 2023-07-07 21:46:34 +0000 |
---|---|---|
committer | GitHub | 2023-07-07 21:46:34 +0000 |
commit | 618620b36907bb2cbe29cd0e737efad9f651a00d (patch) | |
tree | cc6f5e2296017bd98bd0969a87f90b3586b72993 /helix-view | |
parent | dc50263ed049f5eb4cec013c269e83e7395f40c2 (diff) |
use redraw handle for debouncing LSP messages (#7538)
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |