aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeoff Voelker1998-04-17 05:25:48 +0000
committerGeoff Voelker1998-04-17 05:25:48 +0000
commitb3e1cb05b4576a59e38f022805c384c0453b953a (patch)
tree1b6268a578f0f2ac8700294fd969256670bc7156 /src
parent4a3bf56545387aeb68c6f26938ae6c72028597b5 (diff)
downloademacs-b3e1cb05b4576a59e38f022805c384c0453b953a.tar.gz
emacs-b3e1cb05b4576a59e38f022805c384c0453b953a.zip
(reset_terminal_modes): Only invoke hook if defined.
Diffstat (limited to 'src')
-rw-r--r--src/term.c3
1 files changed, 2 insertions, 1 deletions
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 ()
371{ 371{
372 if (! FRAME_TERMCAP_P (selected_frame)) 372 if (! FRAME_TERMCAP_P (selected_frame))
373 { 373 {
374 (*reset_terminal_modes_hook) (); 374 if (reset_terminal_modes_hook)
375 (*reset_terminal_modes_hook) ();
375 return; 376 return;
376 } 377 }
377 if (TN_standout_width < 0) 378 if (TN_standout_width < 0)