diff options
| author | Nakidai <nakidai@disroot.org> | 2025-06-11 19:00:44 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-06-11 19:00:44 +0300 |
| commit | dcd13cb0045cf12fddc867fad1e402c98edeec8b (patch) | |
| tree | 1727f703d4a0af804f91f9320e5f1a20e46b0708 /fp.c | |
| parent | b2e86523e97b343639a74ce64063bf566c939ddd (diff) | |
| download | fp-dcd13cb0045cf12fddc867fad1e402c98edeec8b.tar.gz fp-dcd13cb0045cf12fddc867fad1e402c98edeec8b.zip | |
Fix minor issues
Diffstat (limited to 'fp.c')
| -rw-r--r-- | fp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fp.c b/fp.c index ac9ef2d..823a1d4 100644 --- a/fp.c +++ b/fp.c @@ -113,7 +113,7 @@ void render(const char *buf, size_t bufi) fprintf(stderr, "\r: %s\n", buf); for (size_t i = 0; i < 5; ++i) fprintf(stderr, "`%s'\n", results[i].name); - fprintf(stderr, "\033[6A\033[%dC", 2 + bufi); + fprintf(stderr, "\033[6A\033[%luC", 2 + bufi); fflush(stderr); } @@ -156,10 +156,10 @@ int main(int argc, char **argv) } break; } render(buf, bufi); -cont: +cont:; } end: - fprintf(stderr, "\033[6B\rYou've chosen `", results[0].name); + fprintf(stderr, "\033[6B\rYou've chosen `"); fflush(stderr); fprintf(stdout, "%s", results[0].name); fflush(stdout); |