diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 21:38:25 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-17 21:38:25 +0000 |
commit | 0ef9a5c09482649cf0cc6768ed6fc640b4ed2a0a (patch) | |
tree | ae5d05622365b8043bf3068e07ad48afd64ca8bb /src/option.c | |
parent | 541c87c808df91b55e51fedc4987152a3edfe80d (diff) |
patch 9.0.1215: using isalpha() adds dependency on current localev9.0.1215
Problem: Using isalpha() adds dependency on current locale.
Solution: Do not use isalpha() for recognizing a URL or the end of an Ex
command. (closes #11835)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 4afb518d1e..386cf4d3c3 100644 --- a/src/option.c +++ b/src/option.c @@ -1684,7 +1684,7 @@ do_set( errmsg = NULL; startarg = arg; // remember for error message - if (STRNCMP(arg, "all", 3) == 0 && !isalpha(arg[3]) + if (STRNCMP(arg, "all", 3) == 0 && !ASCII_ISALPHA(arg[3]) && !(opt_flags & OPT_MODELINE)) { /* |