diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-11 21:19:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-11 21:19:34 +0100 |
commit | f785aa1354208f6b644e891aa01f8f86d947af7e (patch) | |
tree | aa9ed2fee106094256c479215ab91ec129d3d763 /src/structs.h | |
parent | 0bcadf14aa700c166c09f1800ed3de00b9598b39 (diff) | |
download | vim-git-f785aa1354208f6b644e891aa01f8f86d947af7e.tar.gz |
patch 8.2.2501: not always clear where an error is reportedv8.2.2501
Problem: Not always clear where an error is reported.
Solution: Add the where_T structure and pass it around. (closes #7796)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 8d86d11b1..550e53a2b 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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; + |