aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-12 21:13:49 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-12 21:58:21 +0530
commit713eed0a21b378e18e4073210b0bb0efc2c18c6c (patch)
tree880f60af29e5562426b3d9fd4881c734b3b2c2f3 /src
parent051a8b27c293bb5cab809c5076dcb92d2a6ad743 (diff)
downloadnnn-713eed0a21b378e18e4073210b0bb0efc2c18c6c.tar.gz
Fix commenting style (if applicable)
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b4ccbf0..d5262a5 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1207,7 +1207,7 @@ static bool batch_rename(const char *path)
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;
@@ -1711,7 +1711,7 @@ static int filterentries(char *path)
}
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;
@@ -1722,7 +1722,7 @@ static int filterentries(char *path)
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;
@@ -2540,9 +2540,9 @@ static bool handle_archive(char *fpath, const char *dir, char op)
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();