Previous location stack often misses actions that should add to it.
I was going to say that “go to next error” does not add the location to the previous location stack, but testing this out, it seems a bit more broken than that.
I'm not 100% sure which actions are supposed to add to the previous location stack. Is cursor movement with keys supposed to? Mouse clicks do seem to work. Opening files and closing them does not seem to work. In the example below, typing does not work. In some cases it does return you to the correct file, but there is no text cursor.
I am using Visual Studio keymap (with some custom changes).
Steps:
- Go to anywhere (Ctrl-N). Opens the file you chose.
- (Optionally type something. Not 100% sure what actions are intended to add to the previous location stack. But you can even type something here and not get a location saved.)
- Close file. (Ctrl-F4)
- Return to previous location (Ctrl-Minus).
- You are not returned to that file, you are returned somewhere else.
Replace “Go to anywhere” with “Go to next error” (Shift-Alt-PageDown) and you have the same problem.
EDIT: testing this out again after a few restarts, I notice that it is not happening right now. So I guess it goes away after restarting? This means you may not be able to reproduce.
Please sign in to leave a comment.
Hi Dave,
I tried to reproduce the issue you mentioned, seems the “Return to previous location” works as expected on my environment.
May I know if the issue is reproducible? It would be better if you could provide a simple screencast to describe the problem.
Thanks in advance!
Regards,
Tao