aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/display')
-rw-r--r--alacritty/src/display/hint.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs
index c30a88c5..0ff070ec 100644
--- a/alacritty/src/display/hint.rs
+++ b/alacritty/src/display/hint.rs
@@ -150,7 +150,12 @@ impl HintState {
let bounds = self.matches[index].clone();
let action = hint.action.clone();
- self.stop();
+ // Exit hint mode unless it requires explicit dismissal.
+ if hint.persist {
+ self.keys.clear();
+ } else {
+ self.stop();
+ }
// Hyperlinks take precedence over regex matches.
let hyperlink = term.grid()[*bounds.start()].hyperlink();