From ac9daf92d72210570dc9cb63fd0058e4ff50b7a5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 6 Apr 2010 21:35:44 +0000 Subject: Merge copy mode and output mode, dropping the latter. Idea and code from Micah Cowan. --- server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 2859b52a..017cc729 100644 --- a/server.c +++ b/server.c @@ -182,10 +182,11 @@ server_start(char *path) */ if (!ARRAY_EMPTY(&sessions) && !ARRAY_EMPTY(&cfg_causes)) { wp = ARRAY_FIRST(&sessions)->curw->window->active; - window_pane_set_mode(wp, &window_more_mode); + window_pane_set_mode(wp, &window_copy_mode); + window_copy_init_for_output(wp); for (i = 0; i < ARRAY_LENGTH(&cfg_causes); i++) { cause = ARRAY_ITEM(&cfg_causes, i); - window_more_add(wp, "%s", cause); + window_copy_add(wp, "%s", cause); xfree(cause); } ARRAY_FREE(&cfg_causes); -- cgit