diff src/input.cc @ 4153:6b96ce9f5743

[project @ 2002-11-06 20:38:49 by jwe]
author jwe
date Wed, 06 Nov 2002 20:38:50 +0000
parents 62afb31c1f85
children 8b1da831dfeb
line wrap: on
line diff
--- a/src/input.cc
+++ b/src/input.cc
@@ -43,6 +43,7 @@
 
 #include "cmd-edit.h"
 #include "file-ops.h"
+#include "quit.h"
 #include "str-vec.h"
 
 #include "defun.h"
@@ -170,8 +171,12 @@
     {
       bool eof;
 
+      BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE;
+
       retval = command_editor::readline (s, eof);
 
+      END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE;
+
       if (! eof && retval.empty ())
 	retval = "\n";
     }