File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ put_current_selected (void)
773
773
/* --------------------------------------------------------------------------------------------- */
774
774
775
775
static void
776
- put_tagged (WPanel * panel )
776
+ put_tagged (const WPanel * panel )
777
777
{
778
778
if (!command_prompt )
779
779
return ;
@@ -782,20 +782,18 @@ put_tagged (WPanel *panel)
782
782
783
783
if (panel -> marked == 0 )
784
784
{
785
- const file_entry_t * fe ;
785
+ const file_entry_t * fe = panel_current_entry ( panel ) ;
786
786
787
- fe = panel_current_entry (current_panel );
788
787
if (fe != NULL )
789
788
command_insert (cmdline , fe -> fname -> str , TRUE);
790
789
}
791
790
else
792
- {
793
- int i ;
794
-
795
- for (i = 0 ; i < panel -> dir .len ; i ++ )
791
+ for (int m = 0 , i = 0 ; m < panel -> marked && i < panel -> dir .len ; i ++ )
796
792
if (panel -> dir .list [i ].f .marked != 0 )
793
+ {
797
794
command_insert (cmdline , panel -> dir .list [i ].fname -> str , TRUE);
798
- }
795
+ m ++ ;
796
+ }
799
797
800
798
input_enable_update (cmdline );
801
799
}
You can’t perform that action at this time.
0 commit comments