From b3e1cb05b4576a59e38f022805c384c0453b953a Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 17 Apr 1998 05:25:48 +0000 Subject: [PATCH] (reset_terminal_modes): Only invoke hook if defined. --- src/term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 39aba03da9f..db1f317114e 100644 --- a/src/term.c +++ b/src/term.c @@ -371,7 +371,8 @@ reset_terminal_modes () { if (! FRAME_TERMCAP_P (selected_frame)) { - (*reset_terminal_modes_hook) (); + if (reset_terminal_modes_hook) + (*reset_terminal_modes_hook) (); return; } if (TN_standout_width < 0) -- 2.39.2