vim-patch:8.1.1891: functions used in one file are global

Problem:    Functions used in one file are global.
Solution:   Add "static". (Yegappan Lakshmanan, closes vim/vim#4840)

5843f5f37b

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2025-07-17 23:08:31 -04:00
parent f2d92ba6ca
commit 85bd0b6a03
17 changed files with 25 additions and 43 deletions

View File

@@ -1090,7 +1090,7 @@ char *get_menu_names(expand_T *xp, int idx)
///
/// @param name may be modified.
/// @return start of the next element
char *menu_name_skip(char *const name)
static char *menu_name_skip(char *const name)
{
char *p;