Ticket #3843: edit2.patch

File edit2.patch, 635 bytes (added by zaytsev, 7 years ago)
  • src/editor/edit.c

    diff --git a/src/editor/edit.c b/src/editor/edit.c
    index eaab3c4..6899171 100644
    a b edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) 
    33563356        if (option_cursor_beyond_eol && edit->over_col > 0) 
    33573357            edit_insert_over (edit); 
    33583358#ifdef HAVE_CHARSET 
    3359         if (char_for_insertion > 255 && !mc_global.utf8_display) 
     3359        if (char_for_insertion > 127 && str_isutf8 (get_codepage_id (mc_global.source_codepage)) 
     3360            && !mc_global.utf8_display) 
    33603361        { 
    33613362            unsigned char str[UTF8_CHAR_LEN + 1]; 
    33623363            size_t i = 0;