emacs-evil / evil

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

evil-search-word-forward doesn't "jump" on the next word when point is on the first column #1160

Open jody-frankowski opened 5 years ago

jody-frankowski commented 5 years ago

Issue type

Environment

Emacs version: GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-12 Operating System: ArchLinux Evil version: Evil version 1.2.14 Evil installation type: https://github.com/raxod502/straight.el Graphical/Terminal: Emacs in Tmux Tested in a make emacs session (see CONTRIBUTING.md): No

Reproduction steps

Expected behavior

Point should now be on "i"

Actual behavior

The following search/error occurs:

"\<
\>": pattern not found

Further notes

Typing * on the second or third space does what is expected. Settting evil-symbol-word-search to t actually "fixes" this but since it also changes the word selection behavior I would still call this situation a bug.

novahahn commented 5 years ago

I think the bug is in forward-evil-word. (thing-at-point 'evil-word) returns a line break when point is on the first column. (thing-at-point 'symbol) correctly returns nil.

Why does evil-search-word-forward use evil-word but built-in symbol anyway?