Take line number updates into account when bailing early from updateDisplay

Issue #2638