terminal: Tab should not output spaces, just move cursor
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 26 Jun 2012 15:57:40 +0000 (11:57 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 26 Jun 2012 17:22:03 +0000 (13:22 -0400)
commit129decbdf77b17a1f0bc0957fdc9412582447ff3
tree10520c48300b263dfc43f5c76a1ca7e9b4979d68
parent01a57ed50653dce025a1e946860024ba028343d5
terminal: Tab should not output spaces, just move cursor

Emacs uses tab and backspace to move the cursor as well as the regular
cursor movement escape codes.  When it's less bytes than the escape code,
emacs will use a tab or tab + backspace to move the cursor forward.  The
effect is that as you're  moving around in the buffer, emacs will
(seemingly) randomly insert spaces and overwrite what's in the terminal.
Making tab just move the cursor as it should fixes this.
clients/terminal.c