Ticket #3242: mcview-remove-unused-code.patch

File mcview-remove-unused-code.patch, 1.2 KB (added by egmont, 10 years ago)

fix

  • src/viewer/nroff.c

    diff --git a/src/viewer/nroff.c b/src/viewer/nroff.c
    index eb3a486..7733429 100644
    a b mcview_display_nroff (mcview_t * view) 
    104104    int c; 
    105105    int c_prev = 0; 
    106106    int c_next = 0; 
    107     struct hexedit_change_node *curr = view->change_list; 
    108107 
    109108    mcview_display_clean (view); 
    110109    mcview_display_ruler (view); 
    111110 
    112111    /* Find the first displayable changed byte */ 
    113112    from = view->dpy_start; 
    114     while (curr && (curr->offset < from)) 
    115     { 
    116         curr = curr->next; 
    117     } 
    118113 
    119114    tty_setcolor (VIEW_NORMAL_COLOR); 
    120115    for (row = 0, col = 0; row < height;) 
  • src/viewer/plain.c

    diff --git a/src/viewer/plain.c b/src/viewer/plain.c
    index 8003f3a..11e65d4 100644
    a b mcview_display_text (mcview_t * view) 
    7474    int cw = 1; 
    7575    int c, prev_ch = 0; 
    7676    gboolean last_row = TRUE; 
    77     struct hexedit_change_node *curr = view->change_list; 
    7877 
    7978    mcview_display_clean (view); 
    8079    mcview_display_ruler (view); 
    8180 
    8281    /* Find the first displayable changed byte */ 
    8382    from = view->dpy_start; 
    84     while ((curr != NULL) && (curr->offset < from)) 
    85         curr = curr->next; 
    8683 
    8784    while (row < height) 
    8885    {