diff --git a/edit/editdraw.c b/edit/editdraw.c index 8b975bd3e..4f0681e32 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -47,6 +47,7 @@ #include "../src/key.h" /* is_idle() */ #include "../src/charsets.h" #include "../src/strutil.h" /* utf string functions */ +#include "../src/main.h" /* source_codepage */ /* Text styles */ #define MOD_ABNORMAL (1 << 8) @@ -83,7 +84,7 @@ static void status_string (WEdit * edit, char *s, int w) /* The field lengths just prevent the status line from shortening too much */ g_snprintf (s, w, - "[%c%c%c%c] %2ld L:[%3ld+%2ld %3ld/%3ld] *(%-4ld/%4ldb)= %s", + "[%c%c%c%c] %2ld L:[%3ld+%2ld %3ld/%3ld] *(%-4ld/%4ldb)= %s C:%s", edit->mark1 != edit->mark2 ? ( column_highlighting ? 'C' : 'B') : '-', edit->modified ? 'M' : '-', edit->macro_i < 0 ? '-' : 'R', @@ -97,7 +98,8 @@ static void status_string (WEdit * edit, char *s, int w) edit->curs1, edit->last_byte, - byte_str); + byte_str, + get_codepage_id( source_codepage )); } static inline void