aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-22 06:14:02 +0000
committerBlaž Hrastnik2021-02-22 06:14:02 +0000
commit33c67f138835d4407e076ebcf2d29322fda44114 (patch)
tree0bffdeab32e8b6be019d5ee9974e6654fefb296e /helix-core
parent61ce2c9cfe07f1cb0b6a6bfd7136b63d667b6795 (diff)
commands: add * as selection search.
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/selection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs
index d3ac045f..edad81a7 100644
--- a/helix-core/src/selection.rs
+++ b/helix-core/src/selection.rs
@@ -120,7 +120,7 @@ impl Range {
// groupAt
#[inline]
- pub fn fragment<'a>(&'a self, text: RopeSlice<'a>) -> Cow<'a, str> {
+ pub fn fragment<'a, 'b: 'a>(&'a self, text: RopeSlice<'b>) -> Cow<'b, str> {
Cow::from(text.slice(self.from()..self.to() + 1))
}
}