diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-18 13:41:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-18 13:41:50 +0200 |
commit | 1d634542cf5ebcd1d5d83bd124b3e1d5e7c96c58 (patch) | |
tree | dd6ddcf92dd58de13a7e4ca9c12854ae449cb8a9 /src/globals.h | |
parent | 558813314d63dd0263a7a86c0496c1e89b5c8cba (diff) | |
download | vim-git-1d634542cf5ebcd1d5d83bd124b3e1d5e7c96c58.tar.gz |
patch 8.2.1479: Vim9: error for list index uses wrong line numberv8.2.1479
Problem: Vim9: error for list index uses wrong line number.
Solution: Set source line number. (closes #6724) Add a way to assert the
line number of the error with assert_fails().
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index d7d1c08f9..e883c56f6 100644 --- a/src/globals.h +++ b/src/globals.h @@ -223,6 +223,7 @@ EXTERN int emsg_severe INIT(= FALSE); // use message of next of several // used by assert_fails() EXTERN int emsg_assert_fails_used INIT(= FALSE); EXTERN char_u *emsg_assert_fails_msg INIT(= NULL); +EXTERN long emsg_assert_fails_lnum INIT(= 0); EXTERN int did_endif INIT(= FALSE); // just had ":endif" #endif |