mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
Ticket #2248: mcedit: don't try set codepage again after file load.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
82d67c61c5
commit
9dfe1ed070
@ -741,9 +741,6 @@ edit_load_file (WEdit * edit)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef HAVE_CHARSET
|
||||
const char *codepage_id;
|
||||
#endif
|
||||
edit->last_byte = 0;
|
||||
if (*edit->filename)
|
||||
{
|
||||
@ -755,12 +752,6 @@ edit_load_file (WEdit * edit)
|
||||
}
|
||||
edit->stack_disable = 0;
|
||||
}
|
||||
|
||||
#ifdef HAVE_CHARSET
|
||||
codepage_id = get_codepage_id (source_codepage);
|
||||
if (codepage_id)
|
||||
edit->utf8 = str_isutf8 (codepage_id);
|
||||
#endif
|
||||
}
|
||||
edit->lb = LB_ASIS;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user