浏览代码

Clear selection list after copy

Without this, there is a conflict with using the `-u` option (use selection).
After copying selected files, the selection is intact and if the user issues
a deletion next, the source files (meant for copying) are deleted.
master
Arun Prakash Jana 4 年前
父节点
当前提交
359b6f7a37
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. +1
    -1
      nnn.1
  2. +2
    -3
      src/nnn.c

+ 1
- 1
nnn.1 查看文件

@@ -412,7 +412,7 @@ separated by \fI;\fR:
# codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
export NNN_COLORS='1234'

# xterm 256 color codes (in hex)
# xterm 256 color codes (in hex, 2 symbols per context)
# codes: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
export NNN_COLORS='#0a1b2c3d'



+ 2
- 3
src/nnn.c 查看文件

@@ -1999,9 +1999,8 @@ static bool cpmvrm_selection(enum action sel, char *path)
return FALSE;
}

/* Clear selection on move or delete */
if (sel != SEL_CP)
clearselection();
/* Clear selection */
clearselection();

return TRUE;
}


正在加载...
取消
保存