emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.29k stars 276 forks source link

search motions forget offset when repeated #1907

Closed totallyuniquelily closed 4 weeks ago

totallyuniquelily commented 1 month ago

Issue type

Environment

Emacs version: GNU Emacs 29.3 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-05-09 Operating System: Void Linux Evil version: Evil version 1.15.0 Evil installation type: Straight Graphical/Terminal: Graphical Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

additionally (optionally)

Expected behavior

only the word "third" should be left. the dot command should execute d/, /e (but instead it executes d/,).

Actual behavior

", third" is left. the dot command appears to not repeat search offsets. after a command is repeated, the last search is replaced with a search that has the same pattern but no offset.

Further notes

if the n motion is used, everything works as it should.

tomdl89 commented 4 weeks ago

Thanks for the bug report @totallyuniquelily. This should now be fixed in master. Please let me know if you observe otherwise.