diff options
author | Nathan Vegdahl | 2021-07-08 23:45:19 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-07-08 23:47:20 +0000 |
commit | b4c59b444cc4963f95a95fe10f166e58ef857288 (patch) | |
tree | 7702d19b657345dbb937363120a7e22648136c58 /helix-core/src/selection.rs | |
parent | 753f7f381b96f591be3c0e37a93b90776c5405cb (diff) |
Update surround commands to work with gap indexing.
Diffstat (limited to 'helix-core/src/selection.rs')
-rw-r--r-- | helix-core/src/selection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index 8951899b..21a6c108 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -217,7 +217,7 @@ impl Range { /// grapheme-aligned. #[must_use] #[inline] - pub fn put(self, text: RopeSlice, extend: bool, char_idx: usize) -> Range { + pub fn put(self, text: RopeSlice, char_idx: usize, extend: bool) -> Range { let anchor = if !extend { char_idx } else if self.head >= self.anchor && char_idx < self.anchor { |