Skip to content

Commit a936012

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/eca20529-0b06-b493-ee38-f071a75dcd5b@postgresfriends.org Backpatch-through: 10
1 parent f1e8362 commit a936012

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
@@ -3597,7 +3597,7 @@ psql_completion(const char *text, int start, int end)
35973597
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
35983598
else if (TailMatchesCS1("\\sv*"))
35993599
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
3600-
else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\i|\\include|"
3600+
else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\gx|\\i|\\include|"
36013601
"\\ir|\\include_relative|\\o|\\out|"
36023602
"\\s|\\w|\\write|\\lo_import"))
36033603
{

0 commit comments

Comments
 (0)