Procházet zdrojové kódy

Write last dir on quit in vim picker mode

master
Martin Roa Villescas Arun Prakash Jana před 4 roky
rodič
revize
e557bd2ed9
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. +5
    -4
      src/nnn.c

+ 5
- 4
src/nnn.c Zobrazit soubor

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


/* CD on Quit */ /* 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; return sel == SEL_QUITFAIL ? EXIT_FAILURE : EXIT_SUCCESS;
#ifndef NOFIFO #ifndef NOFIFO
case SEL_FIFO: case SEL_FIFO:


Načítá se…
Zrušit
Uložit