mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
* editdraw.c (status_string): Use g_snprintf() instead of
snprintf(). From Libor Motyka <l_motycka@ortex.cz>
This commit is contained in:
parent
67ffae6ff2
commit
72a33a6190
@ -61,22 +61,22 @@ static void status_string (WEdit * edit, char *s, int w, int fill, int font_widt
|
||||
}
|
||||
|
||||
/* The field lengths just prevent the status line from shortening too much */
|
||||
snprintf (s, w,
|
||||
"[%c%c%c%c] %2ld L:[%3ld+%2ld %3ld/%3ld] *(%-4ld/%4ldb)= %s",
|
||||
edit->mark1 != edit->mark2 ? ( column_highlighting ? 'C' : 'B') : '-',
|
||||
edit->modified ? 'M' : '-',
|
||||
edit->macro_i < 0 ? '-' : 'R',
|
||||
edit->overwrite == 0 ? '-' : 'O',
|
||||
edit->curs_col / font_width,
|
||||
g_snprintf (s, w,
|
||||
"[%c%c%c%c] %2ld L:[%3ld+%2ld %3ld/%3ld] *(%-4ld/%4ldb)= %s",
|
||||
edit->mark1 != edit->mark2 ? ( column_highlighting ? 'C' : 'B') : '-',
|
||||
edit->modified ? 'M' : '-',
|
||||
edit->macro_i < 0 ? '-' : 'R',
|
||||
edit->overwrite == 0 ? '-' : 'O',
|
||||
edit->curs_col / font_width,
|
||||
|
||||
edit->start_line + 1,
|
||||
edit->curs_row,
|
||||
edit->curs_line + 1,
|
||||
edit->total_lines + 1,
|
||||
edit->start_line + 1,
|
||||
edit->curs_row,
|
||||
edit->curs_line + 1,
|
||||
edit->total_lines + 1,
|
||||
|
||||
edit->curs1,
|
||||
edit->last_byte,
|
||||
byte_str);
|
||||
edit->curs1,
|
||||
edit->last_byte,
|
||||
byte_str);
|
||||
}
|
||||
|
||||
#endif /* MIDNIGHT || GTK */
|
||||
|
Loading…
Reference in New Issue
Block a user