1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Merge pull request #66 from sgerwk/master

update the "What to do?" dialog to the new format with %f for the file
This commit is contained in:
rkd77 2020-09-14 21:40:03 +02:00 committed by GitHub
commit 0fe637a4fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;