Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
psql: Add tab completion for \pset pager
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Aug 2017 23:10:38 +0000 (19:10 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Aug 2017 23:12:29 +0000 (19:12 -0400)
Author: Pavel Stehule <pavel.stehule@gmail.com>

src/bin/psql/tab-complete.c

index e34922dd731cd6295c07b011ba900a3ebc641009..1583cfa998e8d0a21d189f2156cf01a57e453f78 100644 (file)
@@ -3532,6 +3532,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"))