@ -305,7 +305,7 @@ void ICACHE_FLASH_ATTR apars_handle_shortCode(char c)
screen_cursor_save(true);
break;
case '8': // restore cursor + attrs
screen_cursor_restore(false);
screen_cursor_restore(true);
case 'E': // same as CR LF
screen_cursor_move(1, 0, false);
@ -243,7 +243,7 @@ screen_clear_line(ClearMode mode)
void ICACHE_FLASH_ATTR
screen_clear_in_line(unsigned int count)
{
if (cursor.x + count > W) {
if (cursor.x + count >= W) {
screen_clear_line(CLEAR_FROM_CURSOR);
}
else {