Mercurial > vim
comparison src/globals.h @ 23102:3239b0f3c592 v8.2.2097
patch 8.2.2097: Vim9: using :silent! when calling a function prevents abort
Commit: https://github.com/vim/vim/commit/56602ba153af7130b76daf83933922aaea3e2646
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 5 21:22:08 2020 +0100
patch 8.2.2097: Vim9: using :silent! when calling a function prevents abort
Problem: Vim9: using :silent! when calling a function prevents abortng that
function.
Solution: Add emsg_silent_def and did_emsg_def.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Dec 2020 21:30:03 +0100 |
parents | 707b90980de5 |
children | a84e7abb0c92 |
comparison
equal
deleted
inserted
replaced
23101:fe9d456dc33b | 23102:3239b0f3c592 |
---|---|
228 EXTERN int did_endif INIT(= FALSE); // just had ":endif" | 228 EXTERN int did_endif INIT(= FALSE); // just had ":endif" |
229 #endif | 229 #endif |
230 EXTERN int did_emsg; // set by emsg() when the message | 230 EXTERN int did_emsg; // set by emsg() when the message |
231 // is displayed or thrown | 231 // is displayed or thrown |
232 #ifdef FEAT_EVAL | 232 #ifdef FEAT_EVAL |
233 EXTERN int did_emsg_def; // set by emsg() when emsg_silent | |
234 // is set before calling a function | |
233 EXTERN int did_emsg_cumul; // cumulative did_emsg, increased | 235 EXTERN int did_emsg_cumul; // cumulative did_emsg, increased |
234 // when did_emsg is reset. | 236 // when did_emsg is reset. |
235 EXTERN int called_vim_beep; // set if vim_beep() is called | 237 EXTERN int called_vim_beep; // set if vim_beep() is called |
236 EXTERN int did_uncaught_emsg; // emsg() was called and did not | 238 EXTERN int did_uncaught_emsg; // emsg() was called and did not |
237 // cause an exception | 239 // cause an exception |
1132 | 1134 |
1133 EXTERN int is_export INIT(= FALSE); // :export {cmd} | 1135 EXTERN int is_export INIT(= FALSE); // :export {cmd} |
1134 | 1136 |
1135 EXTERN int msg_silent INIT(= 0); // don't print messages | 1137 EXTERN int msg_silent INIT(= 0); // don't print messages |
1136 EXTERN int emsg_silent INIT(= 0); // don't print error messages | 1138 EXTERN int emsg_silent INIT(= 0); // don't print error messages |
1139 #ifdef FEAT_EVAL | |
1140 EXTERN int emsg_silent_def INIT(= 0); // value of emsg_silent when a :def | |
1141 // function is called | |
1142 #endif | |
1137 EXTERN int emsg_noredir INIT(= 0); // don't redirect error messages | 1143 EXTERN int emsg_noredir INIT(= 0); // don't redirect error messages |
1138 EXTERN int cmd_silent INIT(= FALSE); // don't echo the command line | 1144 EXTERN int cmd_silent INIT(= FALSE); // don't echo the command line |
1139 | 1145 |
1140 EXTERN int in_assert_fails INIT(= FALSE); // assert_fails() active | 1146 EXTERN int in_assert_fails INIT(= FALSE); // assert_fails() active |
1141 | 1147 |