Closed AustinScola closed 3 years ago
When in insert mode, if the cursor is on the last line and a newline is input, the cursor will go to the next line and no longer be visible. Check for this and adjust the window offset if it happens.
This is further complicated by the fact the the cursor would be off the end of the buffer in this case.
When in insert mode, if the cursor is on the last line and a newline is input, the cursor will go to the next line and no longer be visible. Check for this and adjust the window offset if it happens.