mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
refactor: use bool
to represent boolean values
This commit is contained in:
@@ -841,7 +841,7 @@ static char *find_longest_match(expand_T *xp, int options)
|
||||
char *ExpandOne(expand_T *xp, char *str, char *orig, int options, int mode)
|
||||
{
|
||||
char *ss = NULL;
|
||||
int orig_saved = false;
|
||||
bool orig_saved = false;
|
||||
|
||||
// first handle the case of using an old match
|
||||
if (mode == WILD_NEXT || mode == WILD_PREV
|
||||
@@ -3311,7 +3311,7 @@ static int wildmenu_process_key_menunames(CmdlineInfo *cclp, int key, expand_T *
|
||||
} else if (key == K_UP) {
|
||||
// Hitting <Up>: Remove one submenu name in front of the
|
||||
// cursor
|
||||
int found = false;
|
||||
bool found = false;
|
||||
|
||||
int j = (int)(xp->xp_pattern - cclp->cmdbuff);
|
||||
int i = 0;
|
||||
@@ -3367,7 +3367,7 @@ static int wildmenu_process_key_filenames(CmdlineInfo *cclp, int key, expand_T *
|
||||
KeyTyped = true; // in case the key was mapped
|
||||
} else if (strncmp(xp->xp_pattern, upseg + 1, 3) == 0 && key == K_DOWN) {
|
||||
// If in a direct ancestor, strip off one ../ to go down
|
||||
int found = false;
|
||||
bool found = false;
|
||||
|
||||
int j = cclp->cmdpos;
|
||||
int i = (int)(xp->xp_pattern - cclp->cmdbuff);
|
||||
@@ -3388,7 +3388,7 @@ static int wildmenu_process_key_filenames(CmdlineInfo *cclp, int key, expand_T *
|
||||
}
|
||||
} else if (key == K_UP) {
|
||||
// go up a directory
|
||||
int found = false;
|
||||
bool found = false;
|
||||
|
||||
int j = cclp->cmdpos - 1;
|
||||
int i = (int)(xp->xp_pattern - cclp->cmdbuff);
|
||||
|
Reference in New Issue
Block a user