aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-04-29 19:33:05 +0200
committerGitHub <noreply@github.com>2022-04-29 19:33:05 +0200
commit6d4180a0d20d0b730b6e64acdac39261f52a9277 (patch)
tree2143d3d8f2cc10caee8b94d79d356eee2e762ebd /src/nvim/tag.c
parentd5dc3dad80ab1aef1d5e2afcc4d44a779605da8b (diff)
parenteef8de4df0247157e57f306062b1b86e01a41454 (diff)
downloadrneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.gz
rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.bz2
rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.zip
Merge pull request #18162 from dundargoc/refactor/unctustify
refactor/uncrustify
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 39c9aacad0..83eb3d1832 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -813,8 +813,7 @@ static void print_tag_list(int new_tag, int use_tagstack, int num_matches, char_
} else {
for (p = tagp.command;
*p && *p != '\r' && *p != '\n';
- p++) {
- }
+ p++) {}
command_end = p;
}
@@ -933,8 +932,7 @@ static int add_llist_tags(char_u *tag, int num_matches, char_u **matches)
cmd_end = tagp.command_end;
if (cmd_end == NULL) {
for (p = tagp.command;
- *p && *p != '\r' && *p != '\n'; p++) {
- }
+ *p && *p != '\r' && *p != '\n'; p++) {}
cmd_end = p;
}
@@ -1780,8 +1778,7 @@ line_read_in:
if (STRNCMP(lbuf, "!_TAG_FILE_ENCODING\t", 20) == 0) {
// Prepare to convert every line from the specified
// encoding to 'encoding'.
- for (p = lbuf + 20; *p > ' ' && *p < 127; p++) {
- }
+ for (p = lbuf + 20; *p > ' ' && *p < 127; p++) {}
*p = NUL;
convert_setup(&vimconv, lbuf + 20, p_enc);
}
@@ -2614,15 +2611,13 @@ static int parse_match(char_u *lbuf, tagptrs_T *tagp)
if (tagp->tagkind != NULL) {
for (p = tagp->tagkind;
*p && *p != '\t' && *p != '\r' && *p != '\n';
- MB_PTR_ADV(p)) {
- }
+ MB_PTR_ADV(p)) {}
tagp->tagkind_end = p;
}
if (tagp->user_data != NULL) {
for (p = tagp->user_data;
*p && *p != '\t' && *p != '\r' && *p != '\n';
- MB_PTR_ADV(p)) {
- }
+ MB_PTR_ADV(p)) {}
tagp->user_data_end = p;
}
}