Allow right-alignment of the rest of a line

It is possible for the right-aligned text to overlap the text before it,
for example in the mode line. In a normal message window that won't
happen because the width of the window is based on the text to output.