Explorar el Código

Write last dir on quit in vim picker mode

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

+ 5
- 4
src/nnn.c Ver fichero

@@ -6615,10 +6615,11 @@ nochange:
save_session(TRUE, NULL);

/* CD on Quit */
/* In vim picker mode, clear selection and exit */
/* Picker mode: reset buffer or clear file */
if (sel == SEL_QUITCD || getenv("NNN_TMPFILE"))
g_state.picker ? selbufpos = 0 : write_lastdir(path);
if (sel == SEL_QUITCD || getenv("NNN_TMPFILE")) {
write_lastdir(path);
if (g_state.picker)
selbufpos = 0;
}
return sel == SEL_QUITFAIL ? EXIT_FAILURE : EXIT_SUCCESS;
#ifndef NOFIFO
case SEL_FIFO:


Cargando…
Cancelar
Guardar