diff options
author | Blaž Hrastnik | 2021-04-10 03:01:49 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-04-10 03:02:23 +0000 |
commit | 95dd55ba943f3667bac3acecb2c65ee7f69d42cd (patch) | |
tree | 28074b4756f8e686a79383fd443f3037354af29c /helix-term/src | |
parent | 7493d19098a8cea44badf4c127fbe754e9733439 (diff) |
Fix overlap calculation.
Diffstat (limited to 'helix-term/src')
-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 b6ae0138..d75cb6ff 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -622,7 +622,7 @@ fn _search(doc: &mut Document, view_id: ViewId, contents: &str, regex: &Regex, e let end = text.byte_to_char(mat.end()); let selection = if extend { - selection.clone().add(Range::new(start, end - 1)) + selection.clone().push(Range::new(start, end - 1)) } else { Selection::single(start, end - 1) }; |