Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
fed99d9b
Commit
fed99d9b
authored
Oct 19, 2015
by
V V
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed help
parent
5e9e5ce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interface.c
interface.c
+2
-2
No files found.
interface.c
View file @
fed99d9b
...
...
@@ -687,13 +687,13 @@ struct command commands[];
/* {{{ client methods */
void
do_help
(
struct
command
*
command
,
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
assert
(
arg_num
<
=
1
);
assert
(
arg_num
=
=
1
);
if
(
ev
)
{
mprint_start
(
ev
);
}
int
total
=
0
;
mpush_color
(
ev
,
COLOR_YELLOW
);
struct
command
*
cmd
=
commands
;
while
(
cmd
->
name
)
{
if
(
!
arg
_num
||
!
strcmp
(
args
[
0
].
str
,
cmd
->
name
))
{
if
(
!
arg
s
[
0
].
str
||
!
strcmp
(
args
[
0
].
str
,
cmd
->
name
))
{
mprintf
(
ev
,
"%s
\n
"
,
cmd
->
desc
);
total
++
;
}
...
...
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