mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Copiousoutput part II. To be continued ...
This commit is contained in:
parent
8ebcddeff4
commit
f6115e65ec
@ -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,
|
file_download->external_handler = subst_file(type_query->external_handler,
|
||||||
codw_hop->file);
|
codw_hop->file);
|
||||||
file_download->delete = 1;
|
file_download->delete = 1;
|
||||||
|
file_download->copiousoutput = type_query->copiousoutput;
|
||||||
mem_free(codw_hop->file);
|
mem_free(codw_hop->file);
|
||||||
mem_free_set(&type_query->external_handler, NULL);
|
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);
|
type_query = init_type_query(ses, loading, cached);
|
||||||
if (type_query) {
|
if (type_query) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
type_query->copiousoutput = handler->copiousoutput;
|
||||||
#ifdef CONFIG_BITTORRENT
|
#ifdef CONFIG_BITTORRENT
|
||||||
/* A terrible waste of a good MIME handler here, but we want
|
/* A terrible waste of a good MIME handler here, but we want
|
||||||
* to use the type_query this is easier. */
|
* to use the type_query this is easier. */
|
||||||
|
@ -48,6 +48,7 @@ struct type_query {
|
|||||||
unsigned char *target_frame;
|
unsigned char *target_frame;
|
||||||
unsigned char *external_handler;
|
unsigned char *external_handler;
|
||||||
int block;
|
int block;
|
||||||
|
unsigned int copiousoutput:1;
|
||||||
/* int frame; */
|
/* int frame; */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -75,6 +76,9 @@ struct file_download {
|
|||||||
/* Whether to block the terminal when running the external handler. */
|
/* Whether to block the terminal when running the external handler. */
|
||||||
unsigned int block:1;
|
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. */
|
/* The current dialog for this download. Can be NULL. */
|
||||||
struct dialog_data *dlg_data;
|
struct dialog_data *dlg_data;
|
||||||
struct listbox_item *box_item;
|
struct listbox_item *box_item;
|
||||||
|
Loading…
Reference in New Issue
Block a user