summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-07 20:59:34 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-07 20:59:34 +0100
commite31ee86859528a7ffe00405645547d494e522fa8 (patch)
tree741c24aea3fae5efb613d64314a6721d6cad85c5 /src/map.c
parentce6db0273f2c4359f48d75103a42991aa481f14e (diff)
downloadvim-git-e31ee86859528a7ffe00405645547d494e522fa8.tar.gz
patch 8.2.0098: exe stack length can be wrong without being detectedv8.2.0098
Problem: Exe stack length can be wrong without being detected. Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 451190d44..31c288201 100644
--- a/src/map.c
+++ b/src/map.c
@@ -1918,10 +1918,12 @@ check_map_keycodes(void)
int abbr;
int hash;
buf_T *bp;
+ ESTACK_CHECK_DECLARATION
validate_maphash();
// avoids giving error messages
estack_push(ETYPE_INTERNAL, (char_u *)"mappings", 0);
+ ESTACK_CHECK_SETUP
// Do this once for each buffer, and then once for global
// mappings/abbreviations with bp == NULL
@@ -1978,6 +1980,7 @@ check_map_keycodes(void)
if (bp == NULL)
break;
}
+ ESTACK_CHECK_NOW
estack_pop();
}