summaryrefslogtreecommitdiff
path: root/src/preline.c
diff options
context:
space:
mode:
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();