Refine PrevNonEmptyLine of TextBuffer