0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1382: Vim9: using :import in filetype plugin gives an error

Problem:    Vim9: using :import in filetype plugin gives an error.
Solution:   Allow commands with the EX_LOCK_OK flag. (closes #6636)
This commit is contained in:
Bram Moolenaar
2020-08-06 22:11:06 +02:00
parent 56b8dc331d
commit 8e1986e389
3 changed files with 33 additions and 1 deletions

View File

@@ -2087,7 +2087,7 @@ do_one_cmd(
// Do allow ":checktime" (it is postponed).
// Do allow ":edit" (check for an argument later).
// Do allow ":file" with no arguments (check for an argument later).
if (!(ea.argt & EX_CMDWIN)
if (!(ea.argt & (EX_CMDWIN | EX_LOCK_OK))
&& ea.cmdidx != CMD_checktime
&& ea.cmdidx != CMD_edit
&& ea.cmdidx != CMD_file