save wrapnext when saving cursor. Closes T1080

This commit is contained in:
Boris Faure 2014-03-15 18:35:59 +01:00
parent 87e06d7a87
commit c27d887c1c
2 changed files with 2 additions and 1 deletions

View File

@ -604,8 +604,8 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
else _termpty_clear_screen(ty, TERMPTY_CLR_END);
break;
case 'K': // 0K erase to end of line, 1K erase from screen start to cursor, 2K erase all of line
DBG("0K erase to end of line, 1K erase from screen start to cursor, 2K erase all of line");
arg = _csi_arg_get(&b);
DBG("0K erase to end of line, 1K erase from screen start to cursor, 2K erase all of line: %d", arg);
if (b)
{
if ((arg >= TERMPTY_CLR_END) && (arg <= TERMPTY_CLR_ALL))

View File

@ -397,4 +397,5 @@ _termpty_cursor_copy(Termstate *state, Termstate *dest)
{
dest->cx = state->cx;
dest->cy = state->cy;
dest->wrapnext = state->wrapnext;
}