tabcomplete-pset.diff
text/x-patch
Filename: tabcomplete-pset.diff
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
| File | + | − |
|---|---|---|
| src/bin/psql/tab-complete.c | 18 | 0 |
*** ./src/bin/psql/tab-complete.c.orig 2011-03-14 11:59:22.000000000 +0100
--- ./src/bin/psql/tab-complete.c 2011-03-14 16:23:41.596278154 +0100
***************
*** 2828,2833 ****
--- 2828,2851 ----
COMPLETE_WITH_LIST(my_list);
}
+ else if (strcmp(prev2_wd, "\\pset") == 0)
+ {
+ if (strcmp(prev_wd, "format") == 0)
+ {
+ static const char *const my_list[] =
+ {"unaligned", "aligned", "wrapped", "html", "latex",
+ "troff-ms", NULL};
+
+ COMPLETE_WITH_LIST(my_list);
+ }
+ else if (strcmp(prev_wd, "linestyle") == 0)
+ {
+ static const char *const my_list[] =
+ {"ascii", "old-ascii", "unicode", NULL};
+
+ COMPLETE_WITH_LIST(my_list);
+ }
+ }
else if (strcmp(prev_wd, "\\set") == 0)
{
matches = complete_from_variables(text, "", "");