From 5cc67f65cdc96cb7ece883f8a724df2d6e0ef090 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 26 Aug 2008 03:13:34 +0000 Subject: [PATCH] (get_named_tty): Fix last change. --- src/ChangeLog | 4 ++++ src/term.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5