summaryrefslogtreecommitdiff
path: root/src/vim9script.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-18 16:26:24 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-18 16:26:24 +0000
commitfd218c8a36e7ed33f7a205163690c5b7d2f31f8a (patch)
treedafd764852a4620a875df01494dc9d3199b6da3f /src/vim9script.c
parent6079da7cfb10c798535224c92db7fedd3914cb71 (diff)
downloadvim-git-fd218c8a36e7ed33f7a205163690c5b7d2f31f8a.tar.gz
patch 8.2.4136: Vim9: the "autoload" argument of ":vim9script" is not usefulv8.2.4136
Problem: Vim9: the "autoload" argument of ":vim9script" is not useful. Solution: Remove the argument. (closes #9555)
Diffstat (limited to 'src/vim9script.c')
-rw-r--r--src/vim9script.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/vim9script.c b/src/vim9script.c
index b35634786..2f7f732ac 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -69,7 +69,6 @@ ex_vim9script(exarg_T *eap UNUSED)
int sid = current_sctx.sc_sid;
scriptitem_T *si;
int found_noclear = FALSE;
- int found_autoload = FALSE;
char_u *p;
if (!getline_equal(eap->getline, eap->cookie, getsourceline))
@@ -96,20 +95,6 @@ ex_vim9script(exarg_T *eap UNUSED)
}
found_noclear = TRUE;
}
- else if (STRNCMP(p, "autoload", 8) == 0 && IS_WHITE_OR_NUL(p[8]))
- {
- if (found_autoload)
- {
- semsg(_(e_duplicate_argument_str), p);
- return;
- }
- found_autoload = TRUE;
- if (script_name_after_autoload(si) == NULL)
- {
- emsg(_(e_using_autoload_in_script_not_under_autoload_directory));
- return;
- }
- }
else
{
semsg(_(e_invalid_argument_str), eap->arg);