mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-20 05:57:06 +04:00
reset idle timer for all events
This commit is contained in:
parent
e5fd5e2a9c
commit
d544376590
@ -314,18 +314,21 @@ pub async fn event_loop_until_idle<S>(&mut self, input_stream: &mut S) -> bool
|
||||
event = self.editor.wait_event() => {
|
||||
let _idle_handled = self.handle_editor_event(event).await;
|
||||
|
||||
// for integration tests only, reset the idle timer after every
|
||||
// event to signal when test events are done processing
|
||||
#[cfg(feature = "integration")]
|
||||
{
|
||||
if _idle_handled {
|
||||
return true;
|
||||
}
|
||||
|
||||
self.editor.reset_idle_timer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// for integration tests only, reset the idle timer after every
|
||||
// event to signal when test events are done processing
|
||||
#[cfg(feature = "integration")]
|
||||
{
|
||||
self.editor.reset_idle_timer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user