billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=dbc75a0cc0d4f126bc380e0b3efea39e38ed1aec
commit dbc75a0cc0d4f126bc380e0b3efea39e38ed1aec Author: Boris Faure <bill...@gmail.com> Date: Thu Jun 1 22:52:16 2017 +0200 termptyesc: only do IL/DL when inside margins --- src/bin/termptyesc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index c9cd074..988c395 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -924,6 +924,9 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce) arg = _csi_arg_get(&b); TERMPTY_RESTRICT_FIELD(arg, 1, ty->h); DBG("%s %d lines", (*cc == 'M') ? "delete" : "insert", arg); + if ((ty->cursor_state.cy >= ty->termstate.top_margin) && + ((ty->termstate.bottom_margin == 0) || + (ty->cursor_state.cy < ty->termstate.bottom_margin))) { int sy1, sy2; --