Bug fix to open buffer in code window instead of debug window.

If the cursor is in debug status window while stepping through code, we
need to move to the code window before opening the target buffer.
Otherwise, it would open in the debug status window.