Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
759caf0f
Commit
759caf0f
authored
May 04, 2016
by
Hisham
Browse files
Make PgDown behavior more usual.
Closes #480.
parent
c37be409
Changes
1
Hide whitespace changes
Inline
Side-by-side
Panel.c
View file @
759caf0f
...
...
@@ -412,7 +412,7 @@ bool Panel_onKey(Panel* this, int key) {
break
;
case
KEY_NPAGE
:
this
->
selected
+=
(
this
->
h
-
1
);
this
->
scrollV
+
=
(
this
->
h
-
1
);
this
->
scrollV
=
MIN
(
MAX
(
0
,
Vector_size
(
this
->
items
)
-
this
->
h
),
this
->
selected
-
this
->
h
);
this
->
needsRedraw
=
true
;
break
;
case
KEY_WHEELUP
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment