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
460608d6
Commit
460608d6
authored
Mar 09, 2008
by
Hisham Muhammad
Browse files
Make column operation more comfortable.
parent
8fa33dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
AvailableColumnsPanel.c
View file @
460608d6
...
...
@@ -59,10 +59,9 @@ HandlerResult AvailableColumnsPanel_eventHandler(Panel* super, int ch) {
case
KEY_ENTER
:
case
KEY_F
(
5
):
{
int
at
=
Panel_getSelectedIndex
(
this
->
columns
)
+
1
;
if
(
at
==
Panel_getSize
(
this
->
columns
))
at
--
;
int
at
=
Panel_getSelectedIndex
(
this
->
columns
);
Panel_insert
(
this
->
columns
,
at
,
(
Object
*
)
ListItem_new
(
text
,
0
));
Panel_setSelected
(
this
->
columns
,
at
+
1
);
ColumnsPanel_update
(
this
->
columns
);
result
=
HANDLED
;
break
;
...
...
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