folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.12k stars 163 forks source link

bug: paste register in insert mode get double for macro #807

Open feyleth opened 1 month ago

feyleth commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.1 Build type: Release LuaJIT 2.1.1720049189

Operating system/version

arch-linux

Describe the bug

paste register in insert mode get double for macro

Steps To Reproduce

  1. start macro
  2. go in insert
  3. ctrl+r 0
  4. escape insert
  5. stop macro
  6. play macro again

Expected Behavior

replay macro must past only one time

Health

No response

Log

No response

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/which-key.nvim", opts = {} },
    -- add any other plugins here
  },
})
github-actions[bot] commented 1 week ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

feyleth commented 1 week ago

wait