Vim mode: * and # don't match entire word and take number prefix properly
Submitted by Fangwen Yu
Link to original bug (#765889)
Description
Created attachment 327122 fix * and # in vim mode
The * and # search movements in vim mode are somewhat broken. How to reproduce:
-
Open a file with 4 words: hello hello ahello ahello
-
Put the cursor on the 2nd "hello", hit * so the cursor moves to ahello.
-
Hit another * and it is now searching for "ahello" (rather than "hello").
The actual cause of this problem is that the * and # search movements in vim mode do not match the entire word, and they should. The keybindings for * and # correctly specify the word_boundries setting in vim.css, but it is not respected by ide_source_view_real_move_search().
The attached patch fixes this problem.
Patch 327122, "fix * and # in vim mode":
0001-vim-fix-and-search-movements.patch