mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Optimization
This commit is contained in:
parent
4c2d4ed67f
commit
fc3e6c40ec
2 changed files with 4 additions and 8 deletions
|
|
@ -219,14 +219,12 @@ static int data_handler(void *user, const char *section, const char *name,
|
||||||
// Ignore
|
// Ignore
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(value, "none"))
|
||||||
if (!strcmp(value, "none"))
|
|
||||||
{
|
{
|
||||||
option.color = -1; // No color
|
option.color = -1; // No color
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(value, "bold"))
|
||||||
if (!strcmp(value, "bold"))
|
|
||||||
{
|
{
|
||||||
option.color = 256; // Bold
|
option.color = 256; // Bold
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -330,14 +330,12 @@ void options_parse(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(optarg, "none"))
|
||||||
if (!strcmp(optarg, "none"))
|
|
||||||
{
|
{
|
||||||
option.color = -1; // No color
|
option.color = -1; // No color
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(optarg, "bold"))
|
||||||
if (!strcmp(optarg, "bold"))
|
|
||||||
{
|
{
|
||||||
option.color = 256; // Bold
|
option.color = 256; // Bold
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue