Bound updateStyles until into buffer.
view.buffer -> buffer; avoid OOB on lines.