From: Eli Zaretskii Date: Tue, 26 Aug 2008 03:13:34 +0000 (+0000) Subject: (get_named_tty): Fix last change. X-Git-Tag: emacs-pretest-23.0.90~3270 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5cc67f65cdc96cb7ece883f8a724df2d6e0ef090;p=emacs.git (get_named_tty): Fix last change. --- diff --git a/src/ChangeLog b/src/ChangeLog index c7352729d78..6c6e757a47c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-26 Eli Zaretskii + + * term.c (get_named_tty): Fix last change. + 2008-08-26 Chong Yidong * indent.c (Fvertical_motion): If moving forward starting from a diff --git a/src/term.c b/src/term.c index 287133a2d4a..6303ceb3dca 100644 --- a/src/term.c +++ b/src/term.c @@ -2232,7 +2232,7 @@ get_named_tty (name) for (t = terminal_list; t; t = t->next_terminal) { - if (t->type == output_termcap || t->type == output_msdos_raw + if ((t->type == output_termcap || t->type == output_msdos_raw) && !strcmp (t->display_info.tty->name, name) && TERMINAL_ACTIVE_P (t)) return t;