fix over-eager shortcut in the implementaiton of continuation jumps

Don't jump past a prompt when jumping to a continuation that is
a prefix of the current one.

Reported by Max New