Skip to content

Commit

Permalink
fix off by one error for completion-replace option (#10279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe committed Apr 8, 2024
1 parent 0da809c commit 6f5ea6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-lsp/src/lib.rs
Expand Up @@ -284,7 +284,8 @@ pub mod util {
.chars_at(cursor)
.skip(1)
.take_while(|ch| chars::char_is_word(*ch))
.count();
.count()
+ 1;
}
(start, end)
}
Expand Down

0 comments on commit 6f5ea6b

Please sign in to comment.