billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=3a28d9964970122cfe0dd7fc671ce68bb8026911

commit 3a28d9964970122cfe0dd7fc671ce68bb8026911
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jul 27 23:27:23 2017 +0200

    termpty: fix inserting blank chars. Closes T5802
---
 src/bin/termptyesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index ee63dfa..7e2370f 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1007,7 +1007,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const 
Eina_Unicode *ce)
         break;
       case '@': // insert N blank chars
         arg = _csi_arg_get(&b);
-        TERMPTY_RESTRICT_FIELD(ty->cursor_state.cx, 1, ty->w * ty->h);
+        TERMPTY_RESTRICT_FIELD(arg, 1, ty->w * ty->h);
         DBG("insert %d blank chars", arg);
           {
              int pi = ty->termstate.insert;

-- 


Reply via email to