diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-07-17 01:26:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 01:26:53 +0000 |
commit | 82d2cb0be60580212157fa1c002cdad944c5c662 (patch) | |
tree | 54eb09978e813edb37054a91d257f969d745e5a4 /alacritty/src/event.rs | |
parent | f608fece45e6f62bd45725f4ff0f6d98dd746fef (diff) | |
download | r-alacritty-82d2cb0be60580212157fa1c002cdad944c5c662.tar.gz r-alacritty-82d2cb0be60580212157fa1c002cdad944c5c662.tar.bz2 r-alacritty-82d2cb0be60580212157fa1c002cdad944c5c662.zip |
Add different search label for backward search
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r-- | alacritty/src/event.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 72070ce7..c934c31a 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -99,6 +99,16 @@ impl SearchState { fn new() -> Self { Self::default() } + + /// Search regex text if a search is active. + pub fn regex(&self) -> Option<&String> { + self.regex.as_ref() + } + + /// Direction of the search from the search origin. + pub fn direction(&self) -> Direction { + self.direction + } } impl Default for SearchState { @@ -836,7 +846,7 @@ impl<N: Notify + OnResize> Processor<N> { &self.config, &self.mouse, self.modifiers, - self.search_state.regex.as_ref(), + &self.search_state, ); } }); |