summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options-table.c8
-rw-r--r--server-client.c4
2 files changed, 8 insertions, 4 deletions
diff --git a/options-table.c b/options-table.c
index 8af4d934..4d646f73 100644
--- a/options-table.c
+++ b/options-table.c
@@ -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",
diff --git a/server-client.c b/server-client.c
index 18e9d935..8de4f6bd 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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);