summaryrefslogtreecommitdiff
path: root/src/preline.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/preline.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/preline.c')
-rw-r--r--src/preline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/preline.c b/src/preline.c
index e61c588..2a0b8c4 100644
--- a/src/preline.c
+++ b/src/preline.c
@@ -41,8 +41,8 @@ int main(int argc, char **argv)
if (!(rpline = env_get("RPLINE"))) die_usage();
if (!(dtline = env_get("DTLINE"))) die_usage();
- while ((opt = getopt(argc, argv, "frdFRD")) != opteof) switch (opt)
- {
+ while ((opt = getopt(argc, argv, "frdFRD")) != opteof) {
+ switch (opt) {
case 'f': flagufline = 0; break;
case 'r': flagrpline = 0; break;
case 'd': flagdtline = 0; break;
@@ -51,6 +51,7 @@ int main(int argc, char **argv)
case 'D': flagdtline = 1; break;
default: die_usage();
}
+ }
argc -= optind;
argv += optind;
if (!*argv) die_usage();