Fix --basedir completion.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 20 Jan 2019 21:01:35 +0000 (22:01 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 20 Jan 2019 21:01:35 +0000 (22:01 +0100)
Silly braino.

tfortune.c

index 29243fc..e11c6da 100644 (file)
@@ -1448,7 +1448,7 @@ static int com_compgen(void)
                        }
                        break;
                case WT_LONG_OPT_WITH_ARG:
-                       if (strcmp(prev, "--basename") == 0) {
+                       if (strcmp(prev, "--basedir") == 0) {
                                activate_dirname_completion();
                                return 1;
                        }