aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-16 20:39:05 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-16 20:39:05 +0530
commit88698b372b65d16a21736c743bfabed32dace273 (patch)
tree17c3f7434335e12913e9d4d448cf5ec75182c550 /src
parent4c863d9b7b0f63b15006e952e1ca5c81397c9a8e (diff)
downloadnnn-88698b372b65d16a21736c743bfabed32dace273.tar.gz
Edit also flushes selection
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5c991e6..946ffd4 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1014,6 +1014,7 @@ static bool editselection(void)
nselected = lines;
writesel(pselbuf, selbufpos - 1);
+ spawn(copier, NULL, NULL, NULL, F_NOTRACE);
return TRUE;
@@ -3303,7 +3304,7 @@ static void show_help(const char *path)
"cD File detail ^R F2 Rename/duplicate\n"
"3Space ^J/a Select entry/all r Batch rename\n"
"9m ^K Sel range, clear M List selection\n"
- "cP Copy selection K Edit selection\n"
+ "cP Copy selection K Edit, flush sel\n"
"cV Move selection w Copy/move sel as\n"
"cX Del selection ^X Del entry\n"
"cf Create archive T Mount archive\n"
@@ -4701,8 +4702,8 @@ nochange:
//mvprintw(xlines - 1, 0, "+%d\n", r);
//xdelay();
- writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */
- spawn(copier, NULL, NULL, NULL, F_NOTRACE);
+ //writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */
+ //spawn(copier, NULL, NULL, NULL, F_NOTRACE);
continue;
case SEL_SELLST:
if (listselbuf() || listselfile()) {