1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[status] window_status unconditional. Refs #128

This commit is contained in:
Witold Filipczyk 2021-09-22 15:01:52 +02:00
parent c008cddb83
commit 7b2179be1f
4 changed files with 2 additions and 8 deletions

View File

@ -199,11 +199,9 @@ display_status_bar(struct session *ses, struct terminal *term, int tabs_count)
msg = msg_text(term, N_("Keyboard prefix: %d"), msg = msg_text(term, N_("Keyboard prefix: %d"),
ses->kbdprefix.repeat_count); ses->kbdprefix.repeat_count);
} }
#ifdef CONFIG_ECMASCRIPT
else if (ses->status.window_status) { else if (ses->status.window_status) {
msg = stracpy(ses->status.window_status); msg = stracpy(ses->status.window_status);
} }
#endif
else if (download) { else if (download) {
struct document_view *doc_view = current_frame(ses); struct document_view *doc_view = current_frame(ses);

View File

@ -1387,9 +1387,8 @@ destroy_session(struct session *ses)
mem_free_if(ses->search_word); mem_free_if(ses->search_word);
mem_free_if(ses->last_search_word); mem_free_if(ses->last_search_word);
mem_free_if(ses->status.last_title); mem_free_if(ses->status.last_title);
#ifdef CONFIG_ECMASCRIPT
mem_free_if(ses->status.window_status); mem_free_if(ses->status.window_status);
#endif
if (ses->option) { if (ses->option) {
delete_option(ses->option); delete_option(ses->option);
ses->option = NULL; ses->option = NULL;

View File

@ -119,9 +119,7 @@ struct session_status {
unsigned int set_window_title:1; unsigned int set_window_title:1;
char *last_title; char *last_title;
#ifdef CONFIG_ECMASCRIPT
char *window_status; char *window_status;
#endif
#ifdef CONFIG_LEDS #ifdef CONFIG_LEDS
unsigned int show_leds:1; unsigned int show_leds:1;

View File

@ -68,11 +68,10 @@ detach_formatted(struct document_view *doc_view)
assert(doc_view); assert(doc_view);
if_assert_failed return; if_assert_failed return;
#ifdef CONFIG_ECMASCRIPT
if (doc_view->session) { if (doc_view->session) {
mem_free_set(&doc_view->session->status.window_status, NULL); mem_free_set(&doc_view->session->status.window_status, NULL);
} }
#endif
if (doc_view->document) { if (doc_view->document) {
release_document(doc_view->document); release_document(doc_view->document);
doc_view->document = NULL; doc_view->document = NULL;