Fix align-postings to deal with being at end of buffer