updated for version 7.0183
diff --git a/src/undo.c b/src/undo.c
index 1b69cf1..bd0db74 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -182,7 +182,7 @@
 
     /* Don't allow changes in the buffer while editing the cmdline.  The
      * caller of getcmdline() may get confused. */
-    if (cmdline_busy)
+    if (textlock != 0)
     {
 	EMSG(_(e_secure));
 	return FALSE;