qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs tty.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs tty.c
Date: Sat, 11 Jan 2014 18:46:14 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/01/11 18:46:14

Modified files:
        .              : tty.c 

Log message:
        prevent spurious cursor move when not found

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/tty.c?cvsroot=qemacs&r1=1.53&r2=1.54

Patches:
Index: tty.c
===================================================================
RCS file: /sources/qemacs/qemacs/tty.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -b -r1.53 -r1.54
--- tty.c       5 Jan 2014 23:42:55 -0000       1.53
+++ tty.c       11 Jan 2014 18:46:14 -0000      1.54
@@ -1202,7 +1202,9 @@
     }
 
     TTY_FPUTS("\033[0m", s->STDOUT);
+    if (ts->cursor_y + 1 >= 0 && ts->cursor_x + 1 >= 0) {
     TTY_FPRINTF(s->STDOUT, "\033[%d;%dH", ts->cursor_y + 1, ts->cursor_x + 1);
+    }
     fflush(s->STDOUT);
 }
 



reply via email to

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