mirror of https://github.com/MidnightCommander/mc
Merge branch '2081_edit_overwrite_fix'
* 2081_edit_overwrite_fix: Ticket #2081 (editor: incorrect overwrite text after input utf-8 chars)
This commit is contained in:
commit
f0b5497730
|
@ -2946,7 +2946,8 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion)
|
|||
{
|
||||
if (edit->overwrite)
|
||||
{
|
||||
if (edit_get_byte (edit, edit->curs1) != '\n')
|
||||
/* remove char only one time, after input first byte, multibyte chars */
|
||||
if ((!utf8_display || edit->charpoint == 0) && edit_get_byte (edit, edit->curs1) != '\n')
|
||||
edit_delete (edit, 0);
|
||||
}
|
||||
if (option_cursor_beyond_eol && edit->over_col > 0)
|
||||
|
|
Loading…
Reference in New Issue