mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
vim-patch:9.0.0003: functions are global while they could be local (#29777)
Problem: Functions are global while they could be local.
Solution: Add "static". Add a few tests. (Yegappan Lakshmanan,
closes vim/vim#10612)
ee47eaceaa
Omit script_name_after_autoload(), untrans_function_name(): Vim9 script
only.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -853,7 +853,7 @@ static int color_numbers_8[28] = { 0, 4, 2, 6,
|
||||
// color_names[].
|
||||
// "boldp" will be set to kTrue or kFalse for a foreground color when using 8
|
||||
// colors, otherwise it will be unchanged.
|
||||
int lookup_color(const int idx, const bool foreground, TriState *const boldp)
|
||||
static int lookup_color(const int idx, const bool foreground, TriState *const boldp)
|
||||
{
|
||||
int color = color_numbers_16[idx];
|
||||
|
||||
|
Reference in New Issue
Block a user