Fix jumping between definitions in the same buffer.

Fixes #632.
Merge pull request #634 from cichli/master

Fix jumping between definitions in the same buffer.