-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
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
Labels
No labels