mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
complete.cpp: don't double escape commands in complete output
The argument to --command was escaped both here and in append_switch(), potentially producing incorrect output
This commit is contained in:
@@ -1699,8 +1699,7 @@ wcstring complete_print() {
|
|||||||
}
|
}
|
||||||
append_format(out, L"complete%ls", modestr);
|
append_format(out, L"complete%ls", modestr);
|
||||||
|
|
||||||
append_switch(out, e.cmd_is_path ? L"path" : L"command",
|
append_switch(out, e.cmd_is_path ? L"path" : L"command", e.cmd);
|
||||||
escape_string(e.cmd, ESCAPE_ALL));
|
|
||||||
|
|
||||||
switch (o.type) {
|
switch (o.type) {
|
||||||
case option_type_args_only: {
|
case option_type_args_only: {
|
||||||
|
|||||||
Reference in New Issue
Block a user