Fix find next/prev. mistake with lexer enabled.
This bug cost me a lot of blood.