diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index f8044609..121c0c42 100644 --- a/src/event.rs +++ b/src/event.rs @@ -86,7 +86,7 @@ impl<'a, N: Notify + 'a> input::ActionContext for ActionContext<'a, N> { } fn selection_is_empty(&self) -> bool { - self.terminal.selection().as_ref().map(|s| s.is_empty()).unwrap_or(true) + self.terminal.selection().as_ref().map(Selection::is_empty).unwrap_or(true) } fn clear_selection(&mut self) { |