diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-11-13 12:34:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 12:34:09 +0100 |
commit | 37f665c504e499c95bc0a88c52dd38ca9f621cdd (patch) | |
tree | 366be69fff5a72c1f73b27ffa8cdf1a900288dbf /src/nvim/bufwrite.c | |
parent | eaf5ae6cc69a97e58365b409554783be9dd21385 (diff) | |
parent | ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0 (diff) | |
download | rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.gz rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.bz2 rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.zip |
Merge pull request #31164 from bfredl/hlf_enum
refactor(highlight): make enum of builtin highlights start with 1
Diffstat (limited to 'src/nvim/bufwrite.c')
-rw-r--r-- | src/nvim/bufwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/bufwrite.c b/src/nvim/bufwrite.c index 2752ef5c59..5f830b4219 100644 --- a/src/nvim/bufwrite.c +++ b/src/nvim/bufwrite.c @@ -350,7 +350,7 @@ static int check_mtime(buf_T *buf, FileInfo *file_info) msg_scroll = true; // Don't overwrite messages here. msg_silent = 0; // Must give this prompt. // Don't use emsg() here, don't want to flush the buffers. - msg(_("WARNING: The file has been changed since reading it!!!"), HLF_E + 1); + msg(_("WARNING: The file has been changed since reading it!!!"), HLF_E); if (ask_yesno(_("Do you really want to write to it"), true) == 'n') { return FAIL; } @@ -1881,7 +1881,7 @@ nofail: retval = FAIL; if (end == 0) { - const int hl_id = HLF_E + 1; // Set highlight for error messages. + const int hl_id = HLF_E; // Set highlight for error messages. msg_puts_hl(_("\nWARNING: Original file may be lost or damaged\n"), hl_id, true); msg_puts_hl(_("don't quit the editor until the file is successfully written!"), hl_id, true); |