diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-30 18:33:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-30 18:33:02 +0100 |
commit | 086fc9a585afa4317046fa0a36c7b896286e5128 (patch) | |
tree | 105e3992c54ff08b2bd8fe6a7576c03671f98e5b /src/globals.h | |
parent | 4f6b6ed208a15552f0eb7f27b7ca945f59f22c1d (diff) |
patch 8.2.1924: Vim9: crash when indexing dict with NULL keyv8.2.1924
Problem: Vim9: crash when indexing dict with NULL key.
Solution: Use empty string instead of NULL. (closes #7229) Make error
message more useful for empty string.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index 5bdbad636f..379a532fac 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1699,7 +1699,7 @@ EXTERN char e_invalblob[] INIT(= N_("E978: Invalid operation for Blob")); EXTERN char e_toomanyarg[] INIT(= N_("E118: Too many arguments for function: %s")); EXTERN char e_toofewarg[] INIT(= N_("E119: Not enough arguments for function: %s")); EXTERN char e_func_deleted[] INIT(= N_("E933: Function was deleted: %s")); -EXTERN char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: %s")); +EXTERN char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); EXTERN char e_listreq[] INIT(= N_("E714: List required")); EXTERN char e_listblobreq[] INIT(= N_("E897: List or Blob required")); EXTERN char e_list_end[] INIT(= N_("E697: Missing end of List ']': %s")); |