Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7054e12

Browse files
committed
psql: do file completion for \gx
This was missed when the feature was added. Reported-by: Vik Fearing Discussion: https://postgr.es/m/[email protected] Backpatch-through: 10
1 parent fd802bd commit 7054e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3880,7 +3880,7 @@ psql_completion(const char *text, int start, int end)
38803880
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
38813881
else if (TailMatchesCS1("\\sv*"))
38823882
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
3883-
else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\i|\\include|"
3883+
else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\gx|\\i|\\include|"
38843884
"\\ir|\\include_relative|\\o|\\out|"
38853885
"\\s|\\w|\\write|\\lo_import"))
38863886
{

0 commit comments

Comments
 (0)