From 827b994dc650f30b4f3844e4d002608b5f8b699f Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Sat, 1 Aug 2020 23:18:13 -0400 Subject: [PATCH] Fixed cursor right bug when line >80 chars --- apps/edit.c | 10 ++++------ apps/email_common.h | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/edit.c b/apps/edit.c index 7376458..08e4d98 100644 --- a/apps/edit.c +++ b/apps/edit.c @@ -5,11 +5,9 @@ // Note: Use my fork of cc65 to get a flashing cursor!! -// TODO: Bug handling file with lines of 80 chars + CR. Cursor right doesn't -// work properly at the end of such lines // TODO: Minor bug - can delete too many chars from status line -// TODO: Should be smarter about redrawing when updating selection!!! // TODO: Doesn't check for error cases when calling gap buffer functions +// TODO: Should be smarter about redrawing when updating selection!!! // TODO: Make use of aux mem #include @@ -304,7 +302,7 @@ char prompt_okay(char *msg) { void show_error(char *msg) { cursor(0); goto_prompt_row(); - clrline(); + clreol(); beep(); revers(1); cprintf("%s [Press Any Key]", msg); @@ -800,12 +798,12 @@ void cursor_right(void) { } ++curscol; if (curscol == rowlen[cursrow]) { - if (gapbuf[gapbegin - 1] == EOL) { +// if (gapbuf[gapbegin - 1] == EOL) { if (cursrow == NROWS - 1) scroll_down(); ++cursrow; curscol = 0; - } +// } } gotoxy(curscol, cursrow); } diff --git a/apps/email_common.h b/apps/email_common.h index ab4c259..6afaa97 100644 --- a/apps/email_common.h +++ b/apps/email_common.h @@ -4,7 +4,7 @@ // Bobbi June 2020 ///////////////////////////////////////////////////////////////// -#define PROGNAME "emai//er v0.92" +#define PROGNAME "emai//er v0.93" // Configuration params from POP65.CFG char cfg_server[40]; // IP of POP3 server