Unless DECOM mode is enabled, the cursor positions are measured from the top left corner of the screen. We counted from the top margin, causing line inserts in `vim` to go out-of-bounds and crash the terminal.