mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[status] window_status unconditional. Refs #128
This commit is contained in:
parent
c008cddb83
commit
7b2179be1f
@ -199,11 +199,9 @@ display_status_bar(struct session *ses, struct terminal *term, int tabs_count)
|
||||
msg = msg_text(term, N_("Keyboard prefix: %d"),
|
||||
ses->kbdprefix.repeat_count);
|
||||
}
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
else if (ses->status.window_status) {
|
||||
msg = stracpy(ses->status.window_status);
|
||||
}
|
||||
#endif
|
||||
else if (download) {
|
||||
struct document_view *doc_view = current_frame(ses);
|
||||
|
||||
|
@ -1387,9 +1387,8 @@ destroy_session(struct session *ses)
|
||||
mem_free_if(ses->search_word);
|
||||
mem_free_if(ses->last_search_word);
|
||||
mem_free_if(ses->status.last_title);
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
mem_free_if(ses->status.window_status);
|
||||
#endif
|
||||
|
||||
if (ses->option) {
|
||||
delete_option(ses->option);
|
||||
ses->option = NULL;
|
||||
|
@ -119,9 +119,7 @@ struct session_status {
|
||||
|
||||
unsigned int set_window_title:1;
|
||||
char *last_title;
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
char *window_status;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LEDS
|
||||
unsigned int show_leds:1;
|
||||
|
@ -68,11 +68,10 @@ detach_formatted(struct document_view *doc_view)
|
||||
assert(doc_view);
|
||||
if_assert_failed return;
|
||||
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
if (doc_view->session) {
|
||||
mem_free_set(&doc_view->session->status.window_status, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (doc_view->document) {
|
||||
release_document(doc_view->document);
|
||||
doc_view->document = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user