nnn

mirror of https://github.com/jarun/nnn
Log | Files | Refs | README | LICENSE

commit f9460f1b2369c3dbe75e89c33bbdbc191b64a64b
parent 2933d766f89176d8307c79bc4525b97329ead3a3
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon, 23 Feb 2026 18:35:51 +0530

Use O_BENCH to quit nnn after loading for benchmarking

Diffstat:
Msrc/nnn.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3370,9 +3370,6 @@ static inline int handle_event(void) */ static int nextsel(int presel) { -#ifdef BENCH - return SEL_QUIT; -#endif wint_t c = presel; int i = 0; bool escaped = FALSE; @@ -8051,8 +8048,10 @@ begin: statusbar(path); } - /* Uncomment for disk usage calculation performance profiling e.g. to run 'time nnn -T d /' and exit */ - // return EXIT_SUCCESS; +#ifdef BENCH + /* Lod and exit for performance profiling e.g. to run 'time nnn -T d /' */ + return EXIT_SUCCESS; +#endif nochange: /* Exit if parent has exited */