瀏覽代碼

Clear picker file on cancel

master
Arun Prakash Jana 6 年之前
父節點
當前提交
9876948a46
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      src/nnn.c

+ 6
- 1
src/nnn.c 查看文件

@@ -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;
}


Loading…
取消
儲存