qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs shell.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs shell.c
Date: Tue, 14 Jan 2014 03:53:56 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/01/14 03:53:56

Modified files:
        .              : shell.c 

Log message:
        small fixes in terminal emulation

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/shell.c?cvsroot=qemacs&r1=1.76&r2=1.77

Patches:
Index: shell.c
===================================================================
RCS file: /sources/qemacs/qemacs/shell.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -b -r1.76 -r1.77
--- shell.c     14 Jan 2014 03:29:37 -0000      1.76
+++ shell.c     14 Jan 2014 03:53:56 -0000      1.77
@@ -1122,9 +1122,11 @@
                 break;
             case '@':  /* ICH: insert chars (no cursor update) */
                 buf1[0] = ' ';
+                offset1 = offset;
                 for (n = s->esc_params[0]; n > 0; n--) {
                     /* XXX: incorrect for non 8 bit charsets */
-                    eb_insert(s->b, offset, buf1, 1);
+                    eb_insert(s->b, offset1, buf1, 1);
+                    offset1 += 1;
                 }
                 s->cur_offset = offset;
                 break;
@@ -1179,7 +1181,8 @@
                 for (n = s->esc_params[0]; n > 0; n--) {
                     tty_put_char(s, ' ');
                 }
-                /* CG: should save and restore cursor */
+                /* restore cursor */
+                s->cur_offset = offset;
                 break;
             case 'x':  /* DECREQTPARM: report terminal characteristics */
             case 'Z':  /* CBT: move cursor back n tabs */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]