summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-18 13:41:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-18 13:41:50 +0200
commit1d634542cf5ebcd1d5d83bd124b3e1d5e7c96c58 (patch)
treedd6ddcf92dd58de13a7e4ca9c12854ae449cb8a9 /src/globals.h
parent558813314d63dd0263a7a86c0496c1e89b5c8cba (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index d7d1c08f9a..e883c56f63 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