Ticket #275: 0001-add-exit-point-from-panelized-filter-.-in-top-list.patch

File 0001-add-exit-point-from-panelized-filter-.-in-top-list.patch, 1.1 KB (added by angel_il, 11 years ago)
  • src/panelize.c

    From c03259438e623a4dae8bbffe3bb137c386f188c2 Mon Sep 17 00:00:00 2001
    From: admin <admin@holmes.(none)>
    Date: Wed, 18 Feb 2009 11:50:57 +0000
    Subject: [PATCH] add exit point from panelized filter (/. in top list)
    
    ---
     src/panelize.c |   11 +++++++++++
     1 files changed, 11 insertions(+), 0 deletions(-)
    
    diff --git a/src/panelize.c b/src/panelize.c
    index f102812..343c053 100644
    a b static void do_external_panelize (char *command) 
    372372        close_error_pipe (D_ERROR, _("Cannot invoke command.")); 
    373373        return; 
    374374    } 
     375 
     376    list->list[next_free].fnamelen = 1; 
     377    list->list[next_free].fname = "."; 
     378    status = handle_path (list, current_panel->cwd, 
     379                          &st, next_free, &link_to_dir, &stale_link); 
     380    list->list[next_free].f.link_to_dir = link_to_dir; 
     381    list->list[next_free].f.stale_link = stale_link; 
     382    list->list[next_free].f.dir_size_computed = 0; 
     383    list->list[next_free].st = st; 
     384    next_free++; 
     385 
    375386    /* Clear the counters and the directory list */ 
    376387    panel_clean_dir (current_panel); 
    377388