for some reason, spmenu_run didn't work, but this commit seems to fix it

This commit is contained in:
speedie 2023-03-08 21:24:55 +01:00
parent a988dc7108
commit e2e56716d9

View file

@ -163,11 +163,8 @@ readargs(int argc, char *argv[])
else if (!strcmp(argv[i], "-p")) /* adds prompt to left of input field */
prompt = argv[++i];
else if (!strcmp(argv[i], "-fn")) /* font or font set */
#if USEPANGO
strcpy(font, argv[++i]);
#else
strcpy(font[0], argv[++i]);
#endif
//strcpy(font[0], argv[++i]);
font[0] = argv[++i];
else if (!strcmp(argv[i], "-nmt")) /* normal mode text */
strcpy(normtext, argv[++i]);
else if (!strcmp(argv[i], "-imt")) { /* insert mode text */