1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

update the "What to do?" dialog to the new format with %f for the file

This commit is contained in:
sgerwk 2020-07-26 09:27:14 +02:00
parent 5dc8c56b2d
commit d6ccb1813b
2 changed files with 5 additions and 3 deletions

View File

@ -517,7 +517,7 @@ format_command(unsigned char *command, unsigned char *type, int copiousoutput)
command++;
if (!strncmp(command, "%s'", 3)) {
command += 3;
add_char_to_string(&cmd, '%');
add_to_string(&cmd, "%f");
} else {
add_char_to_string(&cmd, '\'');
}
@ -530,7 +530,7 @@ format_command(unsigned char *command, unsigned char *type, int copiousoutput)
return NULL;
} else if (*command == 's') {
add_char_to_string(&cmd, '%');
add_to_string(&cmd, "%f");
} else if (*command == 't') {
if (!type) {

View File

@ -1627,7 +1627,9 @@ do_type_query(struct type_query *type_query, unsigned char *ct, struct mime_hand
}
/* xgettext:no-c-format */
add_dlg_field(dlg, _("Program ('%' will be replaced by the filename)", term),
add_dlg_field(dlg,
_("Program ('%f' will be replaced by the filename, "
"'%u' by the uri)", term),
0, 0, NULL, MAX_STR_LEN, field, NULL);
type_query->external_handler = field;