mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
refactor: convert macros to all-caps (#17895)
Closes https://github.com/neovim/neovim/issues/6297
This commit is contained in:
@@ -44,8 +44,8 @@
|
||||
#include "nvim/keymap.h"
|
||||
#include "nvim/lua/executor.h"
|
||||
#include "nvim/main.h"
|
||||
#include "nvim/match.h"
|
||||
#include "nvim/mark.h"
|
||||
#include "nvim/match.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/memline.h"
|
||||
#include "nvim/memory.h"
|
||||
@@ -2663,9 +2663,9 @@ static char_u *find_command(exarg_T *eap, int *full)
|
||||
|
||||
// Use a precomputed index for fast look-up in cmdnames[]
|
||||
// taking into account the first 2 letters of eap->cmd.
|
||||
eap->cmdidx = cmdidxs1[CharOrdLow(c1)];
|
||||
eap->cmdidx = cmdidxs1[CHAR_ORD_LOW(c1)];
|
||||
if (ASCII_ISLOWER(c2)) {
|
||||
eap->cmdidx += cmdidxs2[CharOrdLow(c1)][CharOrdLow(c2)];
|
||||
eap->cmdidx += cmdidxs2[CHAR_ORD_LOW(c1)][CHAR_ORD_LOW(c2)];
|
||||
}
|
||||
} else {
|
||||
eap->cmdidx = CMD_bang;
|
||||
@@ -4519,7 +4519,7 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char **errormsgp)
|
||||
if ((eap->usefilter
|
||||
|| eap->cmdidx == CMD_bang
|
||||
|| eap->cmdidx == CMD_terminal)
|
||||
&& vim_strpbrk(repl, (char_u *)"!") != NULL) {
|
||||
&& strpbrk((char *)repl, "!") != NULL) {
|
||||
char_u *l;
|
||||
|
||||
l = vim_strsave_escaped(repl, (char_u *)"!");
|
||||
|
Reference in New Issue
Block a user