Permalink
Browse files

emacs bug #17497 fix

1 parent fd93edb commit bdff1ff98d02f4307659c052d0b35a40a36f0706 @martintrojer committed Mar 18, 2015
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/cm.c
View
@@ -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.

1 comment on commit bdff1ff

@donaldsharp

Martin - Thanks for figuring out that this patch fixes the emacs virtual box redraw issue. I had about given up on running emacs inside a vm on my mac and this patch fixes my issue.

Please sign in to comment.