Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: pressing CTRL-C in visual mode only closes which-key window #850

Closed
4 tasks done
tonyhu-x opened this issue Sep 18, 2024 · 2 comments
Closed
4 tasks done

bug: pressing CTRL-C in visual mode only closes which-key window #850

tonyhu-x opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@tonyhu-x
Copy link

tonyhu-x commented Sep 18, 2024

Did you check docs and existing issues?

  • I have read all the which-key.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of which-key.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.1

Operating system/version

macOS 14.1

Describe the bug

Pressing CTRL-C with which-key active does not return to normal mode from visual mode but only closes the which-key window. Should be related to the handling of #33.

This also happens with "V CTRL-C", even though in this case we don't see which-key at all.

Steps To Reproduce

  1. Press "v" to enter visual mode.
  2. Press "CTRL-C" and observe that we are still in visual mode.
  3. Press "CTRL-C" again to exit visual mode.

Expected Behavior

Expect CTRL-C to bring me back to normal mode as per the default behaviour.

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
  },
})
@tonyhu-x tonyhu-x added the bug Something isn't working label Sep 18, 2024
@tonyhu-x tonyhu-x changed the title bug: bug: pressing CTRL-C in visual mode only closes which-key window Sep 18, 2024
Copy link
Contributor

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.

@github-actions github-actions bot added the stale label Oct 19, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant