detect whether quickfix or location list is open.