Skip to content

Commit

Permalink
fix(lsp): find_completion_range off-by-one (helix-editor#11266)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored and stackotter committed Aug 28, 2024
1 parent 39d9fb6 commit ac9d66a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helix-lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,8 @@ pub mod util {
if replace_mode {
end += text
.chars_at(cursor)
.skip(1)
.take_while(|ch| chars::char_is_word(*ch))
.count()
+ 1;
.count();
}
(start, end)
}
Expand Down

0 comments on commit ac9d66a

Please sign in to comment.