Mercurial > vim
diff src/map.c @ 19075:af1eca322b9e v8.2.0098
patch 8.2.0098: exe stack length can be wrong without being detected
Commit: https://github.com/vim/vim/commit/e31ee86859528a7ffe00405645547d494e522fa8
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 7 20:59:34 2020 +0100
patch 8.2.0098: exe stack length can be wrong without being detected
Problem: Exe stack length can be wrong without being detected.
Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 07 Jan 2020 21:00:07 +0100 |
parents | 847cc7932c42 |
children | f7081bd2680e |
line wrap: on
line diff
--- 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(); }