fix(lsp): find_completion_range off-by-one (#11266)

This commit is contained in:
RoloEdits 2024-07-24 08:34:20 -07:00 committed by GitHub
parent 9d21b8fa85
commit 7c5e5f4e41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}