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 SofusA committed Aug 4, 2024
1 parent 1bd63a3 commit 2926118
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 2926118

Please sign in to comment.