aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-02-21 07:32:51 +0000
committerBlaž Hrastnik2022-02-21 07:47:14 +0000
commit1ca6ba03cae040111154c96189c4aacf3126bfc8 (patch)
tree0e5a4411f43d70495e0d6fb868c5e9dbf911a010 /helix-term/src/commands.rs
parentd5ba0b516263f08116c43eb0796b1027b094dabd (diff)
Simplify some code
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs2
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| {