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/buffer.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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index cedbadbaf3..fb674774c6 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -106,8 +106,8 @@ # include "buffer.c.generated.h" #endif -static char *e_auabort = N_("E855: Autocommands caused command to abort"); -static char e_attempt_to_delete_buffer_that_is_in_use_str[] +static const char *e_auabort = N_("E855: Autocommands caused command to abort"); +static const char e_attempt_to_delete_buffer_that_is_in_use_str[] = N_("E937: Attempt to delete a buffer that is in use: %s"); // Number of times free_buffer() was called. |