summaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c
index 81cc28e8b8..7ebad1cef9 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -331,9 +331,9 @@ undo_allowed(void)
// Don't allow changes in the buffer while editing the cmdline. The
// caller of getcmdline() may get confused.
- if (textwinlock != 0 || textlock != 0)
+ if (textlock != 0)
{
- emsg(_(e_not_allowed_to_change_text_here));
+ emsg(_(e_not_allowed_to_change_text_or_change_window));
return FALSE;
}