1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

Copiousoutput part II. To be continued ...

This commit is contained in:
Witold Filipczyk 2006-05-04 18:02:45 +02:00 committed by Witold Filipczyk
parent 8ebcddeff4
commit f6115e65ec
2 changed files with 6 additions and 0 deletions

View File

@ -810,6 +810,7 @@ continue_download_do(struct terminal *term, int fd, void *data, int resume)
file_download->external_handler = subst_file(type_query->external_handler,
codw_hop->file);
file_download->delete = 1;
file_download->copiousoutput = type_query->copiousoutput;
mem_free(codw_hop->file);
mem_free_set(&type_query->external_handler, NULL);
}
@ -1207,6 +1208,7 @@ setup_download_handler(struct session *ses, struct download *loading,
type_query = init_type_query(ses, loading, cached);
if (type_query) {
ret = 1;
type_query->copiousoutput = handler->copiousoutput;
#ifdef CONFIG_BITTORRENT
/* A terrible waste of a good MIME handler here, but we want
* to use the type_query this is easier. */

View File

@ -48,6 +48,7 @@ struct type_query {
unsigned char *target_frame;
unsigned char *external_handler;
int block;
unsigned int copiousoutput:1;
/* int frame; */
};
@ -75,6 +76,9 @@ struct file_download {
/* Whether to block the terminal when running the external handler. */
unsigned int block:1;
/* Whether copiousoutput mode is used by the mailcap entry */
unsigned int copiousoutput:1;
/* The current dialog for this download. Can be NULL. */
struct dialog_data *dlg_data;
struct listbox_item *box_item;