Skip to content

Commit

Permalink
fix(lsp): find_completion_range off-by-one (#11266)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored Jul 24, 2024
1 parent 9d21b8f commit 7c5e5f4
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 7c5e5f4

Please sign in to comment.