This commit is contained in:
phillbush
2020-12-31 05:47:06 -03:00
parent 8239f1f155
commit 28f784a7a4
4 changed files with 27 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ getoptions(int argc, char *argv[])
{
int ch;
while ((ch = getopt(argc, argv, "ip:rw")) != -1) {
while ((ch = getopt(argc, argv, "ip:rtw")) != -1) {
switch (ch) {
case 'i':
iflag = 1;
@@ -153,6 +153,9 @@ getoptions(int argc, char *argv[])
case 'r':
rflag = 1;
break;
case 't':
config.typetoselect = !config.typetoselect;
break;
case 'w':
wflag = 1;
break;
@@ -1373,6 +1376,8 @@ enteritem:
break;
default:
append:
if (!config.typetoselect)
break;
for (i = 0; i < 2; i++) {
append(text, buf, sizeof text, len);
if ((item = matchitem(currmenu, text, 0)))