diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-06 22:11:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-06 22:11:06 +0200 |
commit | 8e1986e3896cc8c2a05fc6291a39ebb275e1cebf (patch) | |
tree | 2aa8d1f532271a335c18c8a90d6e0f8590cec334 /src/ex_docmd.c | |
parent | 56b8dc331dc7f499c8221ed7d1c7795ad5e3bdeb (diff) |
patch 8.2.1382: Vim9: using :import in filetype plugin gives an errorv8.2.1382
Problem: Vim9: using :import in filetype plugin gives an error.
Solution: Allow commands with the EX_LOCK_OK flag. (closes #6636)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 105710b016..96eac7fbe4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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 |