Fix corruption with multiple emacsclient -t instances.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Sep 2013 08:24:05 +0000 (01:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Sep 2013 08:24:05 +0000 (01:24 -0700)
commit73f82c7e8eb6a009248f4ea6360b2182d06f55e2
tree72a9eddac1e2c9c1db8a62b97031f72d53b66140
parent53482f41157f37a7f6afb7f19be8fc63b015f6ed
Fix corruption with multiple emacsclient -t instances.

This bug was introduced by my 2013-08-26 patch, which incorrectly
assumed that the terminfo implementation doesn't use termcap buffers.
* term.c (init_tty) [TERMINFO]: Remove optimization, as
these buffers apparently are used after all.
* termchar.h (TERMCAP_BUFFER_SIZE) [TERMINFO]: Define here too.
(struct tty_display_info): Define members termcap_term_buffer and
termcap_strings_buffer even if TERMINFO.

Fixes: debbugs:15222
src/ChangeLog
src/term.c
src/termchar.h