aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-04-27 04:07:59 +0000
committerSkyler Hawthorne2022-06-19 03:57:47 +0000
commit652cdda8338bee55eeff58066cd20e68bb0b5a44 (patch)
treee5e95de26077af4894c65f944fc58af7855289cb /helix-term/src/commands.rs
parented950fcc56c480dc5a54c7e07918dca9192db200 (diff)
use test terminal backend for integration tests
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 85dbfd56..4dfa6ec8 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -2100,10 +2100,10 @@ fn insert_mode(cx: &mut Context) {
doc.text().to_string()
);
- let selection = doc.selection(view.id).clone().transform(|range| {
- let new_range = Range::new(range.to(), range.from());
- new_range
- });
+ let selection = doc
+ .selection(view.id)
+ .clone()
+ .transform(|range| Range::new(range.to(), range.from()));
doc.set_selection(view.id, selection);
}