psql: Add tab completion for \pset pager
authorPeter Eisentraut
Tue, 15 Aug 2017 23:10:38 +0000 (19:10 -0400)
committerPeter Eisentraut
Tue, 15 Aug 2017 23:11:37 +0000 (19:11 -0400)
Author: Pavel Stehule 

src/bin/psql/tab-complete.c

index 90d950b23643b41cc43c86946b9779c2f2884d94..68a2ba27aec22302625c5481a8f74cf866f4dc23 100644 (file)
@@ -3077,6 +3077,8 @@ psql_completion(const char *text, int start, int end)
        }
        else if (TailMatchesCS1("linestyle"))
            COMPLETE_WITH_LIST_CS3("ascii", "old-ascii", "unicode");
+       else if (TailMatchesCS1("pager"))
+           COMPLETE_WITH_LIST_CS3("on", "off", "always");
        else if (TailMatchesCS1("unicode_border_linestyle|"
                                "unicode_column_linestyle|"
                                "unicode_header_linestyle"))