]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix build break
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 29 May 2022 14:39:33 +0000 (20:09 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 29 May 2022 14:39:33 +0000 (20:09 +0530)
src/.clang-tidy
src/nnn.c

index ef188b7b6c60b9097c30ff3353a04e48a215438c..60ee2616d1018f1a6fd4c8a098a39512781ab724 100644 (file)
@@ -11,5 +11,5 @@ CheckOptions:
   - key:             fuchsia-restrict-system-includes.Includes
     value:           '*,-stdint.h,-stdbool.h'
   - key:             readability-function-size.StatementThreshold
-    value:           '910'
+    value:           '915'
 ...
index b847eeb9dd29a5c55fc24f50a6a2dd596edbaad7..0c2b8107a7813b32df68c8422bbcf35a809a9587 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6914,8 +6914,6 @@ nochange:
                        }
 
                        pent = &pdents[cur];
-                       r = FALSE;
-
                        if (g_state.selbm) {
                                S_ISLNK(pent->mode)
                                        ? (realpath(pent->name, newpath) && xstrsncpy(path, lastdir, PATH_MAX))
@@ -6933,8 +6931,7 @@ nochange:
                                        goto nochange;
                                }
 
-                               cdprep(lastdir, lastname, path, newpath)
-                                       ? (presel = FILTER) : (watch = TRUE);
+                               cdprep(lastdir, lastname, path, newpath) ? (presel = FILTER) : (watch = TRUE);
                                goto begin;
                        }
 
@@ -6963,8 +6960,7 @@ nochange:
                                        clearfilter();
 
                                        if (chdir(path) == -1
-                                           || !run_plugin(&path, pent->name,
-                                                                   runfile, &lastname, &lastdir)) {
+                                           || !run_plugin(&path, pent->name, runfile, &lastname, &lastdir)) {
                                                DPRINTF_S("plugin failed!");
                                        }