Fix pattern end anchoring logic.
Support inserting multiple lines in BufferLineEditor.