commit a27568824e7f04efeeac43e2a7fa06496288f84a parent 7e307bc2ffec54a301aeffd6caf4794e4c6034e7 Author: KlzXS <klzx+github@klzx.cf> Date: Tue, 16 Feb 2021 21:33:42 +0000 Add check for empty selection nop when empty Diffstat:
| M | src/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;