Code change for supporting Quickfix window

- Fix the bug when operating the Quickfix window after closeing the
Source Explorer window.
- Handle the case when the cursor is located at the Quickfix window
as same as other external plugins.