ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
49 stars 5 forks source link

Regex searches need to be exclusive #110

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

Currently all forward-moving SearchType variants result in inclusive ranges from the current cursor position to the start of the search object, but this only actually matters for SearchType::Char. SearchType::Regex and SearchType::Word should be done exclusively so that the first character of the match isn't included when doing things like d/ or some other operation.