From 8bb12a40e6a59b091813eb51dfc31466b76eaadb Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 18 Feb 2024 12:51:19 +0300 Subject: [PATCH] (put_tagged): trivial refactoring. Signed-off-by: Andrew Borodin --- src/filemanager/filemanager.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/filemanager/filemanager.c b/src/filemanager/filemanager.c index 484ae1d39..2e8baca78 100644 --- a/src/filemanager/filemanager.c +++ b/src/filemanager/filemanager.c @@ -787,8 +787,12 @@ put_tagged (WPanel * panel) { if (!command_prompt) return; + input_disable_update (cmdline); - if (panel->marked) + + if (panel->marked == 0) + command_insert (cmdline, panel_current_entry (panel)->fname->str, TRUE); + else { int i; @@ -796,8 +800,6 @@ put_tagged (WPanel * panel) if (panel->dir.list[i].f.marked != 0) command_insert (cmdline, panel->dir.list[i].fname->str, TRUE); } - else - command_insert (cmdline, panel_current_entry (panel)->fname->str, TRUE); input_enable_update (cmdline); }