Thanks to visit codestin.com
Credit goes to github.com

Skip to content

E924 error #1167

@jpmv27

Description

@jpmv27

When using location lists, multiple tabs, and switchbuf=usetab, I am seeing E924 errors that don't make sense. It seems that I can trigger one simply by selecting an entry in the location bar of one tab that corresponds to a file that is open in a window in another tab.

I don't see the same thing happen when using the quickfix list instead. In quickfix.c, I see that E924 cannot happen for the quickfix list, only for location lists. Why is that?

Any thoughts to explain what I'm seeing?

I can reproduce this as follows:

  • Completely empty .vimrc except for "switchbuf=usetab"
  • cd to directory with a number of files
  • Open a file in tab 1
  • Open a different file in tab 2
  • From tab 2, use lgrep to search for a string in the first file
  • When switching to first tab for a match, E924 error is displayed

This is just a guess, but is it the switching of tabs that is fooling the code into thinking that the window has been closed? Should win_valid() be win_valid_any_tab() instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions