AustinScola / illud

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

Delete character past last character #208

Closed AustinScola closed 3 years ago

AustinScola commented 3 years ago

When running Illud with an empty buffer as input, the cursor starts at a position not in the buffer. If a character is then inserted and then back in normal mode, if x is input to delete a character, Illud crashes. This is because the cursor is still at a position not in the buffer. What should be done here? Should the cursor be allowed to be off the end of the buffer? If that is allowed, should we display the cursor in a special way -- blinking or underlined?

AustinScola commented 3 years ago

For now, let's just handle this gracefully.