diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 23:35:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-27 23:35:44 +0000 |
commit | 2af52440baa64aa86481cf5d9f6e05c7d257b4bb (patch) | |
tree | 4864ea5da4e5fa4c2fb72b4fe592b24edde60cf7 /cmd-copy-mode.c | |
parent | 7b18a9a6eb86fd2010049b5235aa32058edbb2dc (diff) |
-u to start with screen scrolled up.
Diffstat (limited to 'cmd-copy-mode.c')
-rw-r--r-- | cmd-copy-mode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index b15106e9..7968adf6 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -1,4 +1,4 @@ -/* $Id: cmd-copy-mode.c,v 1.14 2009-01-19 18:23:40 nicm Exp $ */ +/* $Id: cmd-copy-mode.c,v 1.15 2009-01-27 23:35:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -29,7 +29,7 @@ int cmd_copy_mode_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_copy_mode_entry = { "copy-mode", NULL, CMD_TARGET_WINDOW_USAGE, - 0, + CMD_UFLAG, cmd_target_init, cmd_target_parse, cmd_copy_mode_exec, @@ -49,6 +49,9 @@ cmd_copy_mode_exec(struct cmd *self, struct cmd_ctx *ctx) return (-1); window_pane_set_mode(wl->window->active, &window_copy_mode); + if (data->flags & CMD_UFLAG) + window_copy_pageup(wl->window->active); + return (0); } |