fix bug and undo regression with cursor restore

This commit is contained in:
2017-08-09 20:45:22 +02:00
parent 7b94eef448
commit af5a3a64ed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
break;
case 'E': // same as CR LF
screen_cursor_move(1, 0, false);
+1 -1
View File
@@ -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 {