From c27d887c1c36132f14f45c3f3c534f5e379eb126 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 15 Mar 2014 18:35:59 +0100 Subject: [PATCH] save wrapnext when saving cursor. Closes T1080 --- src/bin/termptyesc.c | 2 +- src/bin/termptyops.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index 69441703..71426ef0 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -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)) diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c index 35e2242a..34b9c9b6 100644 --- a/src/bin/termptyops.c +++ b/src/bin/termptyops.c @@ -397,4 +397,5 @@ _termpty_cursor_copy(Termstate *state, Termstate *dest) { dest->cx = state->cx; dest->cy = state->cy; + dest->wrapnext = state->wrapnext; }