spawn(editor, g_tmpfpath, NULL, path, F_CLI);
- // Reopen file descriptor to get updated contents:
+ /* Reopen file descriptor to get updated contents */
if ((fd2 = open(g_tmpfpath, O_RDONLY)) == -1)
goto finish;
}
switch (*ch) {
- case '\r': // with nonl(), this is ENTER key value
+ case '\r': /* with nonl(), this is ENTER key value */
if (len == 1) {
cur = oldcur;
goto end;
redraw(path);
goto end;
- case '?': // '?' is an invalid regex, show help instead
+ case '?': /* '?' is an invalid regex, show help instead */
if (len == 1) {
cur = oldcur;
goto end;
else
return FALSE;
- if (op == 'x') { // extract
+ if (op == 'x') { /* extract */
spawn(util, xarg, fpath, dir, F_NORMAL);
- } else { // list
+ } else { /* list */
exitcurses();
get_output(NULL, 0, util, larg, fpath, TRUE);
refresh();