add to status bar source codepage

This commit is contained in:
Ilia Maslakov 2009-04-09 08:40:59 +00:00
parent eba7d3a130
commit 8725fa60a8

View File

@ -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