Visual star search jumps to last edited file
I have seen these unexpected jumps for a long time but was never able to understand or reproduce it consistently, until today:

Steps to Reproduce:
- Edit any file and close it
- Open a new nvim instance
- Type some text, select it, press
*
Expected Behavior: Occurrences of the visually selected text are matched in the current buffer.
Current Behavior:
Nvim simply opens the last file I edited (as if I had pressed C-o).
Contents of minimal.nvim:
set hidden
call plug#begin('~/.vim/plugins')
Plug 'pgdouyon/vim-evanesco'
call plug#end()
I'm not able to reproduce the behavior with those steps. There were some recent changes to visual search merged in a couple of days ago, can you make sure you're updated to the latest version and try again?
If you're still seeing this issue after updating can you let me know which version of Neovim you're currently using?
I just double checked the evanesco version and I was already using the latest.
I also tested with Vim 8.2 and the problem doesn't happen, so I believe this is some funkiness involving Neovim. I'm currently on MacOS, using iTerm version 3.3.7, with Neovim 0.4.3.