]> Sergey Matveev's repositories - nnn.git/commit
native prompt: clear selection on successful operation
authorNRK <nrk@disroot.org>
Wed, 23 Mar 2022 18:18:46 +0000 (00:18 +0600)
committerNRK <nrk@disroot.org>
Wed, 23 Mar 2022 18:23:38 +0000 (00:23 +0600)
commit72ecf6c4b85712361122ce905566cb5c4ff7f364
tree424d2442f0f6f1b455f0fe1d1ad0a22fd33c8e57
parentd38841d5f327f9ae4db6ca40a286c400b422b102
native prompt: clear selection on successful operation

have been using the %j substitution for a bit now, it's quite nice :)
but it's also quite annoying when doing something like

mv "%j" ./

in this case, the files have been moved but the selection is incorrectly
points to them.

when there's a successful operation made on the selection via the native
prompt, it makes sense to clear the selection.
src/nnn.c