diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-05 21:13:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 21:13:53 +0200 |
commit | 371823d407d7d7519735131bcad4670c62a731a7 (patch) | |
tree | b303ffd5d01f6bcb447b0c783de294dd3bac4914 /src/nvim/undo.c | |
parent | 2612930a092736a2f507e06475634346582f8ae1 (diff) | |
download | rneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.gz rneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.bz2 rneovim-371823d407d7d7519735131bcad4670c62a731a7.zip |
refactor: make error message definitions const
message.c functions now take const char * as a format. Error message
definitions can be made const.
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index ad33ba4667..873970fc39 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -624,7 +624,7 @@ int u_savecommon(buf_T *buf, linenr_T top, linenr_T bot, linenr_T newbot, int re // extra fields for uhp #define UHP_SAVE_NR 1 -static char e_not_open[] = N_("E828: Cannot open undo file for writing: %s"); +static const char e_not_open[] = N_("E828: Cannot open undo file for writing: %s"); /// Compute the hash for a buffer text into hash[UNDO_HASH_SIZE]. /// |