Skip to content

Commit

Permalink
emacs bug #17497 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martintrojer committed Mar 18, 2015
1 parent fd93edb commit bdff1ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

1 comment on commit bdff1ff

@donaldsharp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.