fixes #881: go to declaration in current window instead of a new tab if it is another file.
Merge pull request #890 from wangzq/gotodecl

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