neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f211af3ab747ef06969d936baafd3f348f818259
parent 446161ae08b50c6a174ba7f82ffa14aefa1817f4
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Sun, 12 Oct 2025 22:56:52 -0400

vim-patch:8.2.3962: build fails for missing error message

Problem:    Build fails for missing error message.
Solution:   Add changes in missed file.

https://github.com/vim/vim/commit/d0819d11ecdf3bca4b0800ef905091b5e175b6f4

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Mscripts/vim-patch.sh | 4++++
Msrc/nvim/errors.h | 2+-
Msrc/nvim/regexp.c | 3++-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh @@ -282,6 +282,10 @@ preprocess_patch() { LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/profiler\.c/\1\/profile.c/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename regexp_(bt|nfa).c to regexp.c + LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/regexp_(bt|nfa)\.c/\1\/regexp.c/g' \ + "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename scriptfile.c to runtime.c LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/scriptfile\.c/\1\/runtime.c/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" diff --git a/src/nvim/errors.h b/src/nvim/errors.h @@ -27,7 +27,6 @@ EXTERN const char e_while[] INIT(= N_("E588: :endwhile without :while")); EXTERN const char e_for[] INIT(= N_("E588: :endfor without :for")); EXTERN const char e_exists[] INIT(= N_("E13: File exists (add ! to override)")); EXTERN const char e_failed[] INIT(= N_("E472: Command failed")); -EXTERN const char e_internal[] INIT(= N_("E473: Internal error")); EXTERN const char e_intern2[] INIT(= N_("E685: Internal error: %s")); EXTERN const char e_interr[] INIT(= N_("Interrupted")); EXTERN const char e_invarg[] INIT(= N_("E474: Invalid argument")); @@ -37,6 +36,7 @@ EXTERN const char e_invargNval[] INIT(= N_("E475: Invalid value for argument %s: EXTERN const char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s")); EXTERN const char e_invexpr2[] INIT(= N_("E15: Invalid expression: \"%s\"")); EXTERN const char e_invrange[] INIT(= N_("E16: Invalid range")); +EXTERN const char e_internal_error_in_regexp[] INIT(= N_("E473: Internal error in regexp")); EXTERN const char e_invcmd[] INIT(= N_("E476: Invalid command")); EXTERN const char e_isadir2[] INIT(= N_("E17: \"%s\" is a directory")); EXTERN const char e_no_spell[] INIT(= N_("E756: Spell checking is not possible")); diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c @@ -4370,7 +4370,8 @@ static uint8_t *regatom(int *flagp) if (one_exactly) { EMSG_ONE_RET_NULL; } - IEMSG_RET_NULL(_(e_internal)); // Supposed to be caught earlier. + // Supposed to be caught earlier. + IEMSG_RET_NULL(_(e_internal_error_in_regexp)); // NOTREACHED case Magic('='):