mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
add to status bar source codepage
This commit is contained in:
parent
eba7d3a130
commit
8725fa60a8
@ -47,6 +47,7 @@
|
|||||||
#include "../src/key.h" /* is_idle() */
|
#include "../src/key.h" /* is_idle() */
|
||||||
#include "../src/charsets.h"
|
#include "../src/charsets.h"
|
||||||
#include "../src/strutil.h" /* utf string functions */
|
#include "../src/strutil.h" /* utf string functions */
|
||||||
|
#include "../src/main.h" /* source_codepage */
|
||||||
|
|
||||||
/* Text styles */
|
/* Text styles */
|
||||||
#define MOD_ABNORMAL (1 << 8)
|
#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 */
|
/* The field lengths just prevent the status line from shortening too much */
|
||||||
g_snprintf (s, w,
|
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->mark1 != edit->mark2 ? ( column_highlighting ? 'C' : 'B') : '-',
|
||||||
edit->modified ? 'M' : '-',
|
edit->modified ? 'M' : '-',
|
||||||
edit->macro_i < 0 ? '-' : 'R',
|
edit->macro_i < 0 ? '-' : 'R',
|
||||||
@ -97,7 +98,8 @@ static void status_string (WEdit * edit, char *s, int w)
|
|||||||
|
|
||||||
edit->curs1,
|
edit->curs1,
|
||||||
edit->last_byte,
|
edit->last_byte,
|
||||||
byte_str);
|
byte_str,
|
||||||
|
get_codepage_id( source_codepage ));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
Loading…
Reference in New Issue
Block a user