nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 916910bd7a21b2408a01773b47ff00807b81160b
parent 7e307bc2ffec54a301aeffd6caf4794e4c6034e7
Author: Mischievous Meerkat <engineerarun@gmail.com>
Date:   Thu, 18 Feb 2021 00:36:15 +0530

Merge pull request #856 from KlzXS/cpmvrm

Add check for empty selection
Diffstat:
Msrc/nnn.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2084,6 +2084,11 @@ static bool cpmvrm_selection(enum action sel, char *path) { int r; + if (!selbufpos) { + printmsg(messages[MSG_0_SELECTED]); + return FALSE; + } + if (!selsafe()) return FALSE;