Skip to content

Commit 2926118

Browse files
RoloEditsSofusA
authored andcommitted
fix(lsp): find_completion_range off-by-one (helix-editor#11266)
1 parent 1bd63a3 commit 2926118

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

helix-lsp/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,8 @@ pub mod util {
284284
if replace_mode {
285285
end += text
286286
.chars_at(cursor)
287-
.skip(1)
288287
.take_while(|ch| chars::char_is_word(*ch))
289-
.count()
290-
+ 1;
288+
.count();
291289
}
292290
(start, end)
293291
}

0 commit comments

Comments
 (0)