Skip to content

Opening a quickfix entry via <CR> does not follow 'switchbuf' #177

@ofseed

Description

@ofseed

Neovim version (nvim -v | head -n1)

NVIM v0.12.0-dev-2658+ga969e92249

Operating system/version

Arch Linux

How to reproduce the issue

  1. Set the value of 'switchbuf' to 'usetab'.
  2. Open two tabs simultaneously, where tab1 contains file A and tab2 contains file B.
  3. Open the quickfix window in tab1. Locate an entry that points to a position in file B, move the cursor to this entry, and press <CR>.

Expected behavior

The current tab should be set to tab2, which contains file B. This is the default behavior of <CR> in the quickfix window, and it should follow 'switchbuf'.

Actual behavior

The current tab remains tab1, but the file being displayed has changed from file A to file B, resulting in both tab1 and tab2 displaying file B. This occurs because this plugin maps <CR> in the qf window, causing the default behavior to be overridden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions