Ticket #1461: mc-4.7.0-pre1.info_panel.patch

File mc-4.7.0-pre1.info_panel.patch, 1.2 KB (added by angel_il, 10 years ago)
  • mc-4.7.0-pre1

    diff -Naur mc-4.7.0-pre1~/src/info.c mc-4.7.0-pre1/src/info.c
    old new  
    145145        str_printf (buff, _("Filesystem: %s"), 
    146146                str_trunc (myfs_stats.mpoint, info->widget.cols - i18n_adjust)); 
    147147        addstr (str_term_form (buff->str)); 
     148        g_string_set_size(buff,0); 
    148149    case 11: 
    149150        widget_move (&info->widget, 11, 3); 
    150151        str_printf (buff, _("Accessed:  %s"), file_date (st.st_atime)); 
    151152        addstr (str_term_form (buff->str)); 
     153        g_string_set_size(buff,0); 
    152154    case 10: 
    153155        widget_move (&info->widget, 10, 3); 
    154156        str_printf (buff, _("Modified:  %s"), file_date (st.st_mtime)); 
    155157        addstr (str_term_form (buff->str)); 
     158        g_string_set_size(buff,0); 
    156159    case 9: 
    157160        widget_move (&info->widget, 9, 3); 
    158161        /* TRANSLATORS: "Status changed", like in the stat(2) man page */ 
     
    205208            str_trunc (current_panel->dir.list [current_panel->selected].fname, 
    206209                                    info->widget.cols - i18n_adjust)); 
    207210            addstr (str_term_form (buff->str)); 
     211            g_string_set_size(buff,0); 
    208212        } else 
    209213                addstr (_("File:       None")); 
    210214