fix precedence issue with line highlighting

If the current line is the same as the previous one, highlight it as if it were current.