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

@ -1182,6 +1182,7 @@ Various: *various-functions*
state() get current busy state
visualmode() last visual mode used
exists() check if a variable, function, etc. exists
exists_compiled() like exists() but check at compile time
has() check if a feature is supported in Vim
changenr() return number of most recent change
cscope_connection() check if a cscope connection exists