lineedit: fix multi-line PS1 handling: calculate PS1 length from last \n