Skip to content

Commit 6a50f1a

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 f9c1bb7 commit 6a50f1a

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
@@ -3721,7 +3721,7 @@ psql_completion(const char *text, int start, int end)
37213721
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
37223722
else if (TailMatchesCS("\\sv*"))
37233723
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
3724-
else if (TailMatchesCS("\\cd|\\e|\\edit|\\g|\\i|\\include|"
3724+
else if (TailMatchesCS("\\cd|\\e|\\edit|\\g|\\gx|\\i|\\include|"
37253725
"\\ir|\\include_relative|\\o|\\out|"
37263726
"\\s|\\w|\\write|\\lo_import"))
37273727
{

0 commit comments

Comments
 (0)