Explorar el Código

Remove redundant assignment

master
Arun Prakash Jana hace 4 años
padre
commit
5cd9794102
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 2 ficheros con 4 adiciones y 5 borrados
  1. +2
    -2
      plugins/README.md
  2. +2
    -3
      src/nnn.c

+ 2
- 2
plugins/README.md Ver fichero

@@ -21,8 +21,8 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina
| 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<br>(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<br>[epr](https://github.com/wustho/epr) (optional) |
| hexview | View a file in hex in `$PAGER` | sh | xxd |


+ 2
- 3
src/nnn.c Ver fichero

@@ -5767,9 +5767,8 @@ int main(int argc, char *argv[])
}
#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]));


Cargando…
Cancelar
Guardar