Unnamed repository; edit this file 'description' to name the repository.
fix off by one error for completion-replace option (#10279)
Pascal Kuthe 2024-04-08
parent 0da809c · commit 6f5ea6b
-rw-r--r--helix-lsp/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index f1ffcdf8..262bc1b9 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -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)
}