1
0
forked from aniani/vim

patch 8.1.1863: confusing error when using a builtin function as method

Problem:    Confusing error when using a builtin function as method while it
            does not support that.
Solution:   Add a specific error message.
This commit is contained in:
Bram Moolenaar
2019-08-16 22:22:31 +02:00
parent 9c272a9e52
commit 9174639a82
5 changed files with 21 additions and 4 deletions

View File

@@ -2518,6 +2518,7 @@ typedef enum {
#define ERROR_NONE 5
#define ERROR_OTHER 6
#define ERROR_DELETED 7
#define ERROR_NOTMETHOD 8 // function cannot be used as a method
/* flags for find_name_end() */
#define FNE_INCL_BR 1 /* include [] in name */