aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 51085c4fa0..7e22ed55cb 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -6612,13 +6612,8 @@ static int open_cmdwin(void)
int save_cmdmsg_rl = cmdmsg_rl;
// Can't do this when text or buffer is locked.
- if (text_or_buf_locked()) {
- return K_IGNORE;
- }
-
// Can't do this recursively. Can't do it when typing a password.
- if (cmdwin_type != 0
- || cmdline_star > 0) {
+ if (text_or_buf_locked() || cmdwin_type != 0 || cmdline_star > 0) {
beep_flush();
return K_IGNORE;
}