hecto-tutorial icon indicating copy to clipboard operation
hecto-tutorial copied to clipboard

Fix substring length calculation for backward search

Open valdaarhun opened this issue 10 months ago • 2 comments

Currently, the substring from the beginning of the row till the cursor is picked for backward search. Due to this, the nearest match located prior to the cursor will get skipped when its position lies within the word.

Example:

orange orange
          ^

If the query is "orange" and backward search is performed, the cursor points to the first orange instead of the second orange.

valdaarhun avatar Apr 07 '24 18:04 valdaarhun

Thanks! I'm currently rewriting the hecto tutorial and will make sure this change makes its way into it, and that you are properly attributed.

pflenker avatar Apr 12 '24 14:04 pflenker

Hi. Sorry for the late reply.

Thanks! I'm currently rewriting the hecto tutorial and will make sure this change makes its way into it, and that you are properly attributed.

That's really nice to hear! And thank you for the tutorial. I really enjoyed working through it. It helped make the rust learning curve much less overwhelming for me.

valdaarhun avatar May 25 '24 05:05 valdaarhun