提交 ad3aff45 编写于 作者: R Robert Haas

Tab completion for \pset format and \pset linestyle.

Pavel Stehule
上级 5f588e20
......@@ -2828,6 +2828,24 @@ psql_completion(char *text, int start, int end)
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, "", "");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册