diff options
author | Skyler Hawthorne | 2022-04-27 04:07:59 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-06-19 03:57:47 +0000 |
commit | 652cdda8338bee55eeff58066cd20e68bb0b5a44 (patch) | |
tree | e5e95de26077af4894c65f944fc58af7855289cb /helix-term/src/commands.rs | |
parent | ed950fcc56c480dc5a54c7e07918dca9192db200 (diff) |
use test terminal backend for integration tests
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 8 |
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); } |