add wordwrap rules, airline buffer handling fixes