Ticket #2474: mc-4.7.5-charset-1.diff

File mc-4.7.5-charset-1.diff, 766 bytes (added by dim, 9 years ago)

Patch for --disable-charset build failure

  • src/editor/edit.c

    diff --git a/src/editor/edit.c b/src/editor/edit.c
    index 9f083af..54b22b7 100644
    a b edit_move_forward3 (WEdit * edit, long current, int cols, long upto) 
    29252925    for (col = 0, p = current; p < q; p++) 
    29262926    { 
    29272927        int c, orig_c; 
     2928#ifdef HAVE_CHARSET 
    29282929        int utf_ch = 0; 
    2929 #ifdef HAVE_CHARSET 
    29302930        int cw = 1; 
    29312931#endif 
    29322932        if (cols != -10) 
    edit_move_forward3 (WEdit * edit, long current, int cols, long upto) 
    29512951            else if (cw > 1 && g_unichar_isprint (utf_ch)) 
    29522952                col -= cw - 1; 
    29532953        } 
    2954 #endif 
    29552954        c = convert_to_display_c (c); 
     2955#endif 
    29562956        if (c == '\t') 
    29572957            col += TAB_SIZE - col % TAB_SIZE; 
    29582958        else if (c == '\n')