brenton-leighton / multiple-cursors.nvim

A multi-cursor plugin for Neovim that works in normal, insert/replace, or visual modes, and with almost every command
Apache License 2.0
152 stars 4 forks source link

Fix incorrect count/register for custom key maps #28

Closed brenton-leighton closed 6 months ago

brenton-leighton commented 6 months ago

This merge fixes the count/register possibly not being correct for custom key maps. A custom key map now receives register and count1 as arguments which can then be used by the function.

This merge also adds the option for custom key maps to get two characters as input, and adds checking that input characters are valid (i.e. a printable ASCII character).