comparison src/globals.h @ 22163:b6d36f0b4f03 v8.2.1631

patch 8.2.1631: test_fails() does not check the context of the line number Commit: https://github.com/vim/vim/commit/9bd5d879c2ecfbdbb168b090e12f4b89724a302e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 6 21:47:48 2020 +0200 patch 8.2.1631: test_fails() does not check the context of the line number Problem: test_fails() does not check the context of the line number. Solution: Use another argument to specify the context of the line number.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Sep 2020 22:00:03 +0200
parents 2cc0de1e05a6
children 6b385c2b9ff5
comparison
equal deleted inserted replaced
22162:b910fd9e1190 22163:b6d36f0b4f03
222 // emsg() calls for throw 222 // emsg() calls for throw
223 // used by assert_fails() 223 // used by assert_fails()
224 EXTERN int emsg_assert_fails_used INIT(= FALSE); 224 EXTERN int emsg_assert_fails_used INIT(= FALSE);
225 EXTERN char_u *emsg_assert_fails_msg INIT(= NULL); 225 EXTERN char_u *emsg_assert_fails_msg INIT(= NULL);
226 EXTERN long emsg_assert_fails_lnum INIT(= 0); 226 EXTERN long emsg_assert_fails_lnum INIT(= 0);
227 EXTERN char_u *emsg_assert_fails_context INIT(= NULL);
227 228
228 EXTERN int did_endif INIT(= FALSE); // just had ":endif" 229 EXTERN int did_endif INIT(= FALSE); // just had ":endif"
229 #endif 230 #endif
230 EXTERN int did_emsg; // set by emsg() when the message 231 EXTERN int did_emsg; // set by emsg() when the message
231 // is displayed or thrown 232 // is displayed or thrown