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

Previous window is not actually previous #101

Open
sarmong opened this issue Jan 30, 2023 · 1 comment
Open

Previous window is not actually previous #101

sarmong opened this issue Jan 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sarmong
Copy link

sarmong commented Jan 30, 2023

Feature description

I don't know if it's the intended behaviour, but previousWinid gets cached and only returns the value for the window you opened qf from.

Describe the solution you'd like

Say, you have a vertical split with window 1 and 2. You are on window 1 and open qf.
Then, you open file from qf and it opens in window 1.
After that, you go to window 2. Then, go to qf and open another file.

If opens in window 1, even though technically, 'previous' window is window 2.

Additional context

No response

@sarmong sarmong added the enhancement New feature or request label Jan 30, 2023
@kevinhwang91
Copy link
Owner

I don't know if it's the intended behaviour, but previousWinid gets cached and only returns the value for the window you opened qf from.

Yes. It's intended behavior.

location list has a filewinid field attached to the window before opening qf win. quickfix list hasn't this field, so previousWinid is combined filewinid for location list and the last winid for quickfix list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants