mirror of
https://github.com/bobbimanners/emailler.git
synced 2026-04-24 13:16:41 +00:00
Fixed corner case in cursor_right()
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Prototype of text editor
|
||||
// Bobbi July 2020
|
||||
// Bobbi July-Aug 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]) {
|
||||
if ((curscol == rowlen[cursrow]) && (gapbuf[gapbegin - 1] == '\r')) {
|
||||
if (cursrow == NROWS - 1)
|
||||
scroll_down();
|
||||
++cursrow;
|
||||
|
||||
Reference in New Issue
Block a user