mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-02 19:39:32 +01:00
Space for page down as well.
This commit is contained in:
parent
9def032d16
commit
e293d6af45
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window-more.c,v 1.21 2008-12-08 16:19:51 nicm Exp $ */
|
/* $Id: window-more.c,v 1.22 2009-01-10 01:41:32 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -147,6 +147,10 @@ window_more_key(struct window *w, unused struct client *c, int key)
|
|||||||
data->top -= screen_size_y(s);
|
data->top -= screen_size_y(s);
|
||||||
window_more_redraw_screen(w);
|
window_more_redraw_screen(w);
|
||||||
break;
|
break;
|
||||||
|
case MODEKEY_NONE:
|
||||||
|
if (key != ' ')
|
||||||
|
break;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case MODEKEY_NPAGE:
|
case MODEKEY_NPAGE:
|
||||||
if (data->top + screen_size_y(s) > ARRAY_LENGTH(&data->list))
|
if (data->top + screen_size_y(s) > ARRAY_LENGTH(&data->list))
|
||||||
data->top = ARRAY_LENGTH(&data->list);
|
data->top = ARRAY_LENGTH(&data->list);
|
||||||
|
Loading…
Reference in New Issue
Block a user