Permalink
Browse files

patch for debbugs:17497

  • Loading branch information...
1 parent 3173595 commit 5a04fe59af8617e4b4eb34843f94b3b33f070941 @martintrojer committed Mar 18, 2015
Showing with 37 additions and 0 deletions.
  1. +5 −0 changelog
  2. +30 −0 patches/0042-terminal-redispaly-fix.patch
  3. +2 −0 patches/series
View
@@ -1,3 +1,8 @@
+emacs24 (24.3+1-2ubuntu1mt) trusty; urgency=low
+ * Fix for broken term redraw
+
+ -- Martin Trojer <martin.trojer@gmail.com> Wed, 18 Mar 2015 12:26:33 -0500
+
emacs24 (24.3+1-2ubuntu1) trusty; urgency=medium
* Merge from Debian, with remaining changes:
@@ -0,0 +1,30 @@
+From bdff1ff98d02f4307659c052d0b35a40a36f0706 Mon Sep 17 00:00:00 2001
+From: Martin Trojer <martin.trojer@gmail.com>
+Date: Wed, 18 Mar 2015 11:44:02 +0000
+Subject: [PATCH] emacs bug #17497 fix
+
+---
+ src/cm.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/cm.c b/src/cm.c
+index 474f280..ed17447 100644
+--- a/src/cm.c
++++ b/src/cm.c
+@@ -371,6 +371,16 @@ cmgoto (struct tty_display_info *tty, int row, int col)
+ dcm = tty->Wcm->cm_abs;
+ }
+
++ /* only use direct moves */
++ cost = 0;
++ p = (dcm == tty->Wcm->cm_habs
++ ? tgoto (dcm, row, col)
++ : tgoto (dcm, col, row));
++ emacs_tputs (tty, p, 1, evalcost);
++ emacs_tputs (tty, p, 1, cmputc);
++ curY (tty) = row, curX (tty) = col;
++ return;
++
+ /*
+ * In the following comparison, the = in <= is because when the costs
+ * are the same, it looks nicer (I think) to move directly there.
View
@@ -10,3 +10,5 @@ emacsVER-lp725988.patch
0009-upstream-bug-14829.patch
0008-Emacs-should-no-longer-hang-at-startup-on-kFreeBSD.patch
0009-Emacs-should-no-longer-hang-at-startup-on-kFreeBSD.patch
+0042-terminal-redispaly-fix.patch
+

0 comments on commit 5a04fe5

Please sign in to comment.