diff options
Diffstat (limited to 'helix-core/src/movement.rs')
-rw-r--r-- | helix-core/src/movement.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index ed71b02a..a1de95bd 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -128,8 +128,7 @@ pub fn move_prev_word_start(slice: RopeSlice, mut begin: usize, count: usize) -> } } - // we want to include begin - Some(Range::new(begin + 1, if with_end { end } else { end + 1 })) + Some(Range::new(begin, if with_end { end } else { end + 1 })) } pub fn move_next_word_end(slice: RopeSlice, mut begin: usize, count: usize) -> Option<Range> { |