fixes #881: go to declaration in current window instead of a new tab if ...

...it is another file.