AustinScola / illud

Text buffer editor and terminal viewer.
MIT License
1 stars 0 forks source link

Inserting can move cursor out of window #207

Closed AustinScola closed 3 years ago

AustinScola commented 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.

AustinScola commented 3 years ago

This is further complicated by the fact the the cursor would be off the end of the buffer in this case.