mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Store a copy of the old status line, will be needed soon for new choose mode.
This commit is contained in:
parent
8a214b2f8e
commit
b95e5827c1
@ -125,7 +125,7 @@ const struct options_table_entry options_table[] = {
|
||||
.type = OPTIONS_TABLE_ARRAY,
|
||||
.scope = OPTIONS_TABLE_SERVER,
|
||||
.default_str = "xterm*:XT:Ms=\\E]52;%p1%s;%p2%s\\007"
|
||||
":Cs=\\E]12;%p1%s\\007:Cr=\\E]112\\007"
|
||||
":Cs=\\E]12;%p1%s\\007:Cr=\\E]112\\007"
|
||||
":Ss=\\E[%p1%d q:Se=\\E[2 q,screen*:XT",
|
||||
.separator = ","
|
||||
},
|
||||
@ -485,7 +485,7 @@ const struct options_table_entry options_table[] = {
|
||||
.type = OPTIONS_TABLE_ARRAY,
|
||||
.scope = OPTIONS_TABLE_SESSION,
|
||||
.default_str = "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID "
|
||||
"SSH_CONNECTION WINDOWID XAUTHORITY"
|
||||
"SSH_CONNECTION WINDOWID XAUTHORITY"
|
||||
},
|
||||
|
||||
{ .name = "visual-activity",
|
||||
@ -540,7 +540,7 @@ const struct options_table_entry options_table[] = {
|
||||
.type = OPTIONS_TABLE_STRING,
|
||||
.scope = OPTIONS_TABLE_WINDOW,
|
||||
.default_str = "#{?pane_in_mode,[tmux],#{pane_current_command}}"
|
||||
"#{?pane_dead,[dead],}"
|
||||
"#{?pane_dead,[dead],}"
|
||||
},
|
||||
|
||||
{ .name = "clock-mode-colour",
|
||||
@ -698,7 +698,7 @@ const struct options_table_entry options_table[] = {
|
||||
.type = OPTIONS_TABLE_STRING,
|
||||
.scope = OPTIONS_TABLE_WINDOW,
|
||||
.default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] "
|
||||
"\"#{pane_title}\""
|
||||
"\"#{pane_title}\""
|
||||
},
|
||||
|
||||
{ .name = "pane-border-status",
|
||||
|
@ -275,6 +275,10 @@ server_client_lost(struct client *c)
|
||||
if (event_initialized(&c->status_timer))
|
||||
evtimer_del(&c->status_timer);
|
||||
screen_free(&c->status);
|
||||
if (c->old_status != NULL) {
|
||||
screen_free(c->old_status);
|
||||
free(c->old_status);
|
||||
}
|
||||
|
||||
free(c->title);
|
||||
free((void *)c->cwd);
|
||||
|
Loading…
Reference in New Issue
Block a user