Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
f187be92
Commit
f187be92
authored
9 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
Fix moving of meters
parent
fd5dd660
master
fixedgray
linear-graph-scan
lua
next
perfcounters
pkgconfig-on-linux
solaris
sreclaimable
travis-ci
3.0.0beta5
3.0.0beta4
3.0.0beta3
3.0.0beta2
3.0.0beta1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MetersPanel.c
+1
-0
MetersPanel.c
Panel.c
+1
-1
Panel.c
with
2 additions
and
1 deletion
+2
-1
MetersPanel.c
View file @
f187be92
...
...
@@ -171,6 +171,7 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) {
Vector_remove
(
this
->
meters
,
selected
);
Panel_remove
(
super
,
selected
);
}
MetersPanel_setMoving
(
this
,
false
);
result
=
HANDLED
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Panel.c
View file @
f187be92
...
...
@@ -256,7 +256,7 @@ void Panel_setSelected(Panel* this, int selected) {
int
size
=
Vector_size
(
this
->
items
);
if
(
selected
>=
size
)
{
return
;
selected
=
size
-
1
;
}
if
(
selected
<
0
)
selected
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help