jake-stewart / multicursor.nvim

multiple cursors in neovim
MIT License
592 stars 4 forks source link

Issue with multiline matchAllAddCursor #61

Closed ventsislav-georgiev closed 6 hours ago

ventsislav-georgiev commented 7 hours ago

Having a visual selection on spanning more than one line doesn't work with mc.matchAllAddCursor.

Here is a video with the following list of operations:

  1. viw + mc.matchAllAddCursor()
  2. vj + mc.matchAllAddCursor() - fails, the cursor just jumps to begining of selection
  3. vj + mc.addCursor('*') + mc.addCursor('*') - works, matching one by one

https://github.com/user-attachments/assets/d42bf414-8138-489b-a537-f8cd4da4f4b7

jake-stewart commented 6 hours ago

fixed. try :Lazy update and let me know if any problems. thanks

ventsislav-georgiev commented 6 hours ago

@jake-stewart That was fast! Thanks! Tested and working.

jake-stewart commented 6 hours ago

@ventsislav-georgiev no worries. I just did another update which fixes an infinite loop when matchAddAll from middle of a word. So probably update again.