mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_docmd: forceit,usefilter are bool
This commit is contained in:
parent
58ad7fc578
commit
f5b7fd5fa3
@ -2665,8 +2665,8 @@ const char * set_one_cmd_context(
|
|||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
int context = EXPAND_NOTHING;
|
int context = EXPAND_NOTHING;
|
||||||
int forceit = false;
|
bool forceit = false;
|
||||||
int usefilter = false; // Filter instead of file name.
|
bool usefilter = false; // Filter instead of file name.
|
||||||
|
|
||||||
ExpandInit(xp);
|
ExpandInit(xp);
|
||||||
xp->xp_pattern = (char_u *)buff;
|
xp->xp_pattern = (char_u *)buff;
|
||||||
@ -2787,7 +2787,7 @@ const char * set_one_cmd_context(
|
|||||||
xp->xp_context = EXPAND_NOTHING; /* Default now that we're past command */
|
xp->xp_context = EXPAND_NOTHING; /* Default now that we're past command */
|
||||||
|
|
||||||
if (*p == '!') { /* forced commands */
|
if (*p == '!') { /* forced commands */
|
||||||
forceit = TRUE;
|
forceit = true;
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2816,7 +2816,7 @@ const char * set_one_cmd_context(
|
|||||||
usefilter = forceit; /* :r! filter if forced */
|
usefilter = forceit; /* :r! filter if forced */
|
||||||
if (*arg == '!') { /* :r !filter */
|
if (*arg == '!') { /* :r !filter */
|
||||||
++arg;
|
++arg;
|
||||||
usefilter = TRUE;
|
usefilter = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user