mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
fix(lsp): find_completion_range
off-by-one (#11266)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user