mirror of
https://github.com/neovim/neovim.git
synced 2025-11-11 21:08:53 +00:00
Use ARRAY_SIZE where Coccinelle wasn't able to do it
This commit is contained in:
@@ -2168,7 +2168,7 @@ static void usage(void)
|
||||
for (i = 0;; ++i) {
|
||||
mch_msg(_(" vim [arguments] "));
|
||||
mch_msg(_(use[i]));
|
||||
if (i == (sizeof(use) / sizeof(char_u *)) - 1)
|
||||
if (i == ARRAY_SIZE(use) - 1)
|
||||
break;
|
||||
mch_msg(_("\n or:"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user