plugins/README.md | 4 ++-- src/nnn.c | 5 ++--- diff --git a/plugins/README.md b/plugins/README.md index d29f358f3148aea4fe1f44f7cda0b6d838f0d712..2d2ab7c60bc98c8a4745245beb71b62bf4d4ceda 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -21,8 +21,8 @@ | diffs | Diff for selection (limited to 2 for directories) | sh | vimdiff | | dragdrop | Drag/drop files from/into nnn | sh | [dragon](https://github.com/mwh/dragon) | | exetoggle | Toggle executable status of hovered file | sh | chmod | | fzcd | Change to the directory of a fuzzy-selected file/dir | sh | fzy/fzf
(optional fd) | -| fzhist | Fuzzy-select a cmd from history, edit in $EDITOR and run | sh | fzy | -| fzopen | Fuzzy find a file in dir subtree and edit or xdg-open | sh | fzy, xdg-open | +| fzhist | Fuzzy-select a cmd from history, edit in `$EDITOR` and run | sh | fzy | +| fzopen | Fuzzy find a file in dir subtree and edit or open | sh | fzy, xdg-open | | getplugs | Update plugins | sh | curl | | gutenread | Browse, download, read from Project Gutenberg | sh | curl, unzip, w3m
[epr](https://github.com/wustho/epr) (optional) | | hexview | View a file in hex in `$PAGER` | sh | xxd | diff --git a/src/nnn.c b/src/nnn.c index 54ff48f86fb0b7e9d69105e496987d161f939c12..03ccdc8d1a92ac2c6a95856285c1665c5635c6c6 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5767,9 +5767,8 @@ return _FAILURE; } #endif - /* Set nnn nesting level, idletimeout used as tmp var */ - idletimeout = xatoi(getenv(env_cfg[NNNLVL])); - setenv(env_cfg[NNNLVL], xitoa(++idletimeout), 1); + /* Set nnn nesting level */ + setenv(env_cfg[NNNLVL], xitoa(xatoi(getenv(env_cfg[NNNLVL])) + 1), 1); /* Get locker wait time, if set */ idletimeout = xatoi(getenv(env_cfg[NNN_IDLE_TIMEOUT]));