mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
refactor: uncrustify
Notable changes: replace all infinite loops to `while(true)` and remove `int` from `unsigned int`.
This commit is contained in:
@@ -1402,7 +1402,7 @@ char *make_filter_cmd(char *cmd, char *itmp, char *otmp)
|
||||
: 0;
|
||||
|
||||
if (itmp != NULL) {
|
||||
len += is_pwsh ? strlen(itmp) + sizeof("& { Get-Content " " | & " " }") - 1 + 6 // +6: #20530
|
||||
len += is_pwsh ? strlen(itmp) + sizeof("& { Get-Content " " | & " " }") - 1 + 6 // +6: #20530
|
||||
: strlen(itmp) + sizeof(" { " " < " " } ") - 1;
|
||||
}
|
||||
if (otmp != NULL) {
|
||||
@@ -1427,7 +1427,7 @@ char *make_filter_cmd(char *cmd, char *itmp, char *otmp)
|
||||
// redirecting input and/or output.
|
||||
if (itmp != NULL || otmp != NULL) {
|
||||
char *fmt = is_fish_shell ? "begin; %s; end"
|
||||
: "(%s)";
|
||||
: "(%s)";
|
||||
vim_snprintf(buf, len, fmt, cmd);
|
||||
} else {
|
||||
xstrlcpy(buf, cmd, len);
|
||||
@@ -2782,7 +2782,7 @@ void ex_append(exarg_T *eap)
|
||||
State |= MODE_LANGMAP;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
while (true) {
|
||||
msg_scroll = true;
|
||||
need_wait_return = false;
|
||||
if (curbuf->b_p_ai) {
|
||||
@@ -3581,7 +3581,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T
|
||||
// 3. substitute the string.
|
||||
// 4. if subflags.do_all is set, find next match
|
||||
// 5. break if there isn't another match in this line
|
||||
for (;;) {
|
||||
while (true) {
|
||||
SubResult current_match = {
|
||||
.start = { 0, 0 },
|
||||
.end = { 0, 0 },
|
||||
|
Reference in New Issue
Block a user