diff src/keyboard.c @ 10905:70de58691fd2

(cmd_error): Allow current_perdisplay to be null.
author Karl Heuer <kwzh@gnu.org>
date Fri, 03 Mar 1995 02:08:49 +0000
parents ff1b5efecdb0
children 1e9ffdb9980c
line wrap: on
line diff
--- a/src/keyboard.c	Fri Mar 03 01:51:09 1995 +0000
+++ b/src/keyboard.c	Fri Mar 03 02:08:49 1995 +0000
@@ -768,15 +768,19 @@
   Vstandard_output = Qt;
   Vstandard_input = Qt;
   Vexecuting_macro = Qnil;
-  clear_prefix_arg ();
-  cancel_echoing ();
+  if (current_perdisplay)
+    {
+      clear_prefix_arg ();
+      cancel_echoing ();
+    }
   cmd_error_internal (data, 0);
 
   Vquit_flag = Qnil;
 
   Vinhibit_quit = Qnil;
 #ifdef MULTI_PERDISPLAY
-  unlock_display ();
+  if (current_perdisplay)
+    unlock_display ();
 #endif
 
   return make_number (0);