projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4dd62d
)
psql: Add tab completion for \pset pager
author
Peter Eisentraut
Tue, 15 Aug 2017 23:10:38 +0000
(19:10 -0400)
committer
Peter Eisentraut
Tue, 15 Aug 2017 23:11:37 +0000
(19:11 -0400)
Author: Pavel Stehule
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 90d950b23643b41cc43c86946b9779c2f2884d94..68a2ba27aec22302625c5481a8f74cf866f4dc23 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-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"))