aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 78f42ce5c7b..8212d2aedc0 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -768,15 +768,19 @@ cmd_error (data)
768 Vstandard_output = Qt; 768 Vstandard_output = Qt;
769 Vstandard_input = Qt; 769 Vstandard_input = Qt;
770 Vexecuting_macro = Qnil; 770 Vexecuting_macro = Qnil;
771 clear_prefix_arg (); 771 if (current_perdisplay)
772 cancel_echoing (); 772 {
773 clear_prefix_arg ();
774 cancel_echoing ();
775 }
773 cmd_error_internal (data, 0); 776 cmd_error_internal (data, 0);
774 777
775 Vquit_flag = Qnil; 778 Vquit_flag = Qnil;
776 779
777 Vinhibit_quit = Qnil; 780 Vinhibit_quit = Qnil;
778#ifdef MULTI_PERDISPLAY 781#ifdef MULTI_PERDISPLAY
779 unlock_display (); 782 if (current_perdisplay)
783 unlock_display ();
780#endif 784#endif
781 785
782 return make_number (0); 786 return make_number (0);