mirror of https://github.com/helix-editor/helix
fix off by one error for completion-replace option (#10279)
parent
0da809c981
commit
6f5ea6be58
|
@ -284,7 +284,8 @@ pub mod util {
|
||||||
.chars_at(cursor)
|
.chars_at(cursor)
|
||||||
.skip(1)
|
.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…
Reference in New Issue