Kaynağa Gözat

Clear picker file on cancel

master
Arun Prakash Jana 5 yıl önce
ebeveyn
işleme
9876948a46
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. +6
    -1
      src/nnn.c

+ 6
- 1
src/nnn.c Dosyayı Görüntüle

@@ -3394,7 +3394,12 @@ nochange:
if (sel == SEL_QUITCD) {
/* In vim picker mode, clear selection and exit */
if (cfg.picker) {
copybufpos = 0;
if (copybufpos) {
if (cfg.pickraw) /* Reset for for raw pick */
copybufpos = 0;
else /* Clear the picker file */
writecp(NULL, 0);
}
dentfree(dents);
return;
}


Yükleniyor…
İptal
Kaydet