mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Share InputEventQueuer::is_blocked implementation
This commit is contained in:
@@ -450,9 +450,6 @@ fn paste_commit(&mut self) {
|
||||
)));
|
||||
}
|
||||
|
||||
fn is_blocked(&self) -> bool {
|
||||
self.blocking_wait().is_some()
|
||||
}
|
||||
fn blocking_wait(&self) -> MutexGuard<Option<BlockingWait>> {
|
||||
self.data.blocking_wait()
|
||||
}
|
||||
|
||||
@@ -1633,7 +1633,7 @@ fn blocking_wait(&self) -> MutexGuard<Option<BlockingWait>> {
|
||||
NO_WAIT.lock().unwrap()
|
||||
}
|
||||
fn is_blocked(&self) -> bool {
|
||||
false
|
||||
self.blocking_wait().is_some()
|
||||
}
|
||||
|
||||
fn on_mouse_left_click(&mut self, _position: ViewportPosition) {}
|
||||
|
||||
Reference in New Issue
Block a user