patch 8.2.5043: can open a cmdline window from a substitute expression
Problem: Can open a cmdline window from a substitute expression.
Solution: Disallow opening a command line window when text or buffer is
locked.
diff --git a/src/window.c b/src/window.c
index f2913d4..9b5ac97 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4585,14 +4585,11 @@
return;
}
#endif
- if (text_locked())
+ if (text_or_buf_locked())
{
beep_flush();
- text_locked_msg();
return;
}
- if (curbuf_locked())
- return;
if (wp->w_buffer != curbuf)
reset_VIsual_and_resel();