#endif
// 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
+ if (text_or_buf_locked()
+ || cmdwin_type != 0
# if defined(FEAT_CRYPT) || defined(FEAT_EVAL)
|| cmdline_star > 0
# endif
" the error only happens in a very specific setup, run a new Vim instance to
" get a clean starting point.
let lines =<< trim [SCRIPT]
+ set vb t_vb=
norm o0000000000000000000000000000000000000000000000000000
func Replace()
norm q/
[SCRIPT]
call writefile(lines, 'Xscript')
if RunVim([], [], '-u NONE -S Xscript')
- let messages = readfile('Xresult')
- call assert_match('E565: Not allowed to change text or change window', messages[3])
+ call assert_match('E565: Not allowed to change text or change window',
+ \ readfile('Xresult')->join('XX'))
endif
call delete('Xscript')