mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-06 23:30:51 +00:00
EDIT: Fixed corner case when doing cursor right at EOF (no CR)
This commit is contained in:
parent
f87ec0fca7
commit
ba8458ff18
@ -5,7 +5,6 @@
|
||||
|
||||
// Note: Use my fork of cc65 to get a flashing cursor!!
|
||||
|
||||
// TODO: Some weirdness when last line doesn't have trailing CR
|
||||
// TODO: Minor bug - can delete too many chars from status line
|
||||
// TODO: Should be smarter about redrawing when updating selection!!!
|
||||
// TODO: Make use of aux mem
|
||||
@ -802,6 +801,10 @@ void cursor_right(void) {
|
||||
return;
|
||||
}
|
||||
++curscol;
|
||||
if (gapend == BUFSZ - 1) {
|
||||
gotoxy(curscol, cursrow);
|
||||
return;
|
||||
}
|
||||
if (curscol == rowlen[cursrow]) {
|
||||
if (cursrow == NROWS - 1)
|
||||
scroll_down();
|
||||
|
Loading…
x
Reference in New Issue
Block a user