diff options
author | K.Takata <kentkt@csc.jp> | 2021-06-02 13:28:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-02 13:28:16 +0200 |
commit | eeec2548785b2dd245a31ab25d7bde0f88ea1a6d (patch) | |
tree | 533236c436888fd7a072c4d94a75279158f9c8a5 /src/main.c | |
parent | b54abeeafb074248597878a874fed9a66b114c06 (diff) | |
download | vim-git-eeec2548785b2dd245a31ab25d7bde0f88ea1a6d.tar.gz |
patch 8.2.2922: computing array length is done in various waysv8.2.2922
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index db8202ea7..de94a1576 100644 --- a/src/main.c +++ b/src/main.c @@ -645,7 +645,7 @@ vim_main2(void) #endif /* - * When done something that is not allowed or error message call + * When done something that is not allowed or given an error message call * wait_return. This must be done before starttermcap(), because it may * switch to another screen. It must be done after settmode(TMODE_RAW), * because we want to react on a single key stroke. @@ -1662,7 +1662,7 @@ getout(int exitval) { // give the user a chance to read the (error) message no_wait_return = FALSE; - wait_return(FALSE); +// wait_return(FALSE); } // Position the cursor again, the autocommands may have moved it @@ -3435,7 +3435,7 @@ usage(void) { mch_msg(_(" vim [arguments] ")); mch_msg(_(use[i])); - if (i == (sizeof(use) / sizeof(char_u *)) - 1) + if (i == ARRAY_LENGTH(use) - 1) break; mch_msg(_("\n or:")); } |