diff options
author | Blaž Hrastnik | 2022-02-21 07:32:51 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-02-21 07:47:14 +0000 |
commit | 1ca6ba03cae040111154c96189c4aacf3126bfc8 (patch) | |
tree | 0e5a4411f43d70495e0d6fb868c5e9dbf911a010 /helix-term/src/commands.rs | |
parent | d5ba0b516263f08116c43eb0796b1027b094dabd (diff) |
Simplify some code
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 982ae013..4cded7ef 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4790,7 +4790,7 @@ fn keep_or_remove_selections_impl(cx: &mut Context, remove: bool) { let reg = cx.register.unwrap_or('/'); let prompt = ui::regex_prompt( cx, - if !remove { "keep:" } else { "remove:" }.into(), + if remove { "remove:" } else { "keep:" }.into(), Some(reg), ui::completers::none, move |view, doc, regex, event| { |