Revert "Fixed corner case in cursor_right()"

This reverts commit 50a304d5ef.
This commit is contained in:
Bobbi Webber-Manners 2020-08-02 22:49:53 -04:00
parent 50a304d5ef
commit f87ec0fca7

View File

@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Prototype of text editor
// Bobbi July-Aug 2020
// Bobbi July 2020
/////////////////////////////////////////////////////////////////////////////
// Note: Use my fork of cc65 to get a flashing cursor!!
@ -802,7 +802,7 @@ void cursor_right(void) {
return;
}
++curscol;
if ((curscol == rowlen[cursrow]) && (gapbuf[gapbegin - 1] == '\r')) {
if (curscol == rowlen[cursrow]) {
if (cursrow == NROWS - 1)
scroll_down();
++cursrow;