mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Clear selection after some operations (see notes)
Selection is cleared after successful: - file removal - batch rename - link creation However, selection is not cleared after: - archive creation: user may want to delete the files after archiving
This commit is contained in:
parent
251a9a2e9c
commit
d9b8b0e821
|
@ -3005,6 +3005,7 @@ static int xlink(char *prefix, char *path, char *curfname, char *buf, int *prese
|
||||||
psel += len + 1;
|
psel += len + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearselection();
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5963,6 +5964,7 @@ nochange:
|
||||||
printwait(messages[MSG_FAILED], &presel);
|
printwait(messages[MSG_FAILED], &presel);
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
clearselection();
|
||||||
refresh = TRUE;
|
refresh = TRUE;
|
||||||
break;
|
break;
|
||||||
case SEL_HELP:
|
case SEL_HELP:
|
||||||
|
|
Loading…
Reference in a new issue