fix(lsp): find_completion_range
off-by-one (#11266)
This commit is contained in:
parent
9d21b8fa85
commit
7c5e5f4e41
1 changed files with 1 additions and 3 deletions
|
@ -284,10 +284,8 @@ pub mod util {
|
||||||
if replace_mode {
|
if replace_mode {
|
||||||
end += text
|
end += text
|
||||||
.chars_at(cursor)
|
.chars_at(cursor)
|
||||||
.skip(1)
|
|
||||||
.take_while(|ch| chars::char_is_word(*ch))
|
.take_while(|ch| chars::char_is_word(*ch))
|
||||||
.count()
|
.count();
|
||||||
+ 1;
|
|
||||||
}
|
}
|
||||||
(start, end)
|
(start, end)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue