mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2501: not always clear where an error is reported
Problem: Not always clear where an error is reported. Solution: Add the where_T structure and pass it around. (closes #7796)
This commit is contained in:
@@ -4387,3 +4387,10 @@ typedef enum {
|
||||
MAGIC_ON = 3, // "\m" or 'magic'
|
||||
MAGIC_ALL = 4 // "\v" very magic
|
||||
} magic_T;
|
||||
|
||||
// Struct used to pass to error messages about where the error happened.
|
||||
typedef struct {
|
||||
char wt_index; // argument or variable index, 0 means unknown
|
||||
char wt_variable; // "variable" when TRUE, "argument" otherwise
|
||||
} where_T;
|
||||
|
||||
|
Reference in New Issue
Block a user