1
0
forked from aniani/vim

patch 8.2.3314: behavior of exists() in a :def function is unpredictable

Problem:    Behavior of exists() in a :def function is unpredictable.
Solution:   Add exists_compiled().
This commit is contained in:
Bram Moolenaar
2021-08-08 14:43:22 +02:00
parent 9e2fa4bb9e
commit 267359902c
7 changed files with 78 additions and 25 deletions

View File

@@ -646,3 +646,7 @@ EXTERN char e_encryption_sodium_mlock_failed[]
INIT(= N_("E1230: Encryption: sodium_mlock() failed"));
EXTERN char e_cannot_use_bar_to_separate_commands_here_str[]
INIT(= N_("E1231: Cannot use a bar to separate commands here: %s"));
EXTERN char e_argument_of_exists_compiled_must_be_literal_string[]
INIT(= N_("E1232: Argument of exists_compiled() must be a literal string"));
EXTERN char e_exists_compiled_can_only_be_used_in_def_function[]
INIT(= N_("E1233: exists_compiled() can only be used in a :def function"));