Go to original window after updating breakpoint #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix an issue that causes the cursor to sometimes jump to the taglist
window while debugging with Conque GDB while taglist window is open.
Perform the following steps to reproduce the issue.
Install exuberant-ctags, taglist and Conque GDB.
Create a file called foo.c with the following C code.
Compile the C code. Then launch Vim with the source code.
In Vim, execute the following commands.
Then in GDB, execute the following commands.
At some point while executing these commands, the cursor moves
to the taglist window. One now has to enter
<Esc> Ctrl-w w Ctrl-w w
to return back to the GDB window. Thisis a major inconvenience while debugging.
This occurs because in conque_gdb#breakpoint function, after
moving to another window, it uses the
noautocmd wincmd p
command to return to the previous window. Normally, this works
fine because this is the sequence in which Conque GDB moves from
one window to another:
But when taglist is also being used, previous window is no
longer the GDB window. When we
step
into a new function usingGDB, and execute
next
, taglist moves to the taglist window toupdate what it shows and then returns to the code window.
Therefore, now when GDB tries to move to the previous window,
the previous window is the taglist window as shown below.
This is the cause of the issue.