Skip to content

Commit

Permalink
fix off by one error for completion-replace option (helix-editor#10279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe authored and postsolar committed Apr 20, 2024
1 parent dd4cdf4 commit ffd3d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-lsp/src/lib.rs
Original file line number Diff line number Diff line change
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 ffd3d4f

Please sign in to comment.