diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-06 09:34:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 09:34:29 +0800 |
commit | e8661133c533345e8d83a38b077e45922988fa90 (patch) | |
tree | 05f32f244118b65f6a2ba3b99abc4e68476148b4 /src/nvim/ex_docmd.c | |
parent | b99f13385cfd15e161b18f103a5e36469f49431f (diff) | |
download | rneovim-e8661133c533345e8d83a38b077e45922988fa90.tar.gz rneovim-e8661133c533345e8d83a38b077e45922988fa90.tar.bz2 rneovim-e8661133c533345e8d83a38b077e45922988fa90.zip |
vim-patch:9.0.0904: various comment and indent flaws (#23498)
Problem: Various comment and indent flaws.
Solution: Improve comments and indenting.
https://github.com/vim/vim/commit/88456cd3c49a3dd1fda17cf350daa9b8216b1aa6
Omit test_function_lists.vim change as that file is likely not
applicable to Nvim due to the existence of Nvim-only functions.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 28f7b27c2f..adb17f2cfd 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -93,7 +93,7 @@ static const char e_not_an_editor_command[] = N_("E492: Not an editor command"); static const char e_no_autocommand_file_name_to_substitute_for_afile[] = N_("E495: No autocommand file name to substitute for \"<afile>\""); -static const char e_no_autocommand_buffer_name_to_substitute_for_abuf[] +static const char e_no_autocommand_buffer_number_to_substitute_for_abuf[] = N_("E496: No autocommand buffer number to substitute for \"<abuf>\""); static const char e_no_autocommand_match_name_to_substitute_for_amatch[] = N_("E497: No autocommand match name to substitute for \"<amatch>\""); @@ -6913,7 +6913,7 @@ char *eval_vars(char *src, const char *srcstart, size_t *usedlen, linenr_T *lnum case SPEC_ABUF: // buffer number for autocommand if (autocmd_bufnr <= 0) { - *errormsg = _(e_no_autocommand_buffer_name_to_substitute_for_abuf); + *errormsg = _(e_no_autocommand_buffer_number_to_substitute_for_abuf); return NULL; } snprintf(strbuf, sizeof(strbuf), "%d", autocmd_bufnr); |