mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* editdraw.c (edit_status): Expand the filename field in the status
line to 16 characters even if the actual filename is shorter.
This commit is contained in:
parent
11f8d4e2ea
commit
63cae58f20
@ -1,3 +1,8 @@
|
|||||||
|
2004-10-23 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* editdraw.c (edit_status): Expand the filename field in the status
|
||||||
|
line to 16 characters even if the actual filename is shorter.
|
||||||
|
|
||||||
2004-10-16 Roland Illig <roland.illig@gmx.de>
|
2004-10-16 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* syntax.c (read_one_line): Fixed SEGV when reading syntax file
|
* syntax.c (read_one_line): Fixed SEGV when reading syntax file
|
||||||
|
@ -102,6 +102,8 @@ edit_status (WEdit *edit)
|
|||||||
if (edit->filename)
|
if (edit->filename)
|
||||||
fname = edit->filename;
|
fname = edit->filename;
|
||||||
fname_len = strlen(fname);
|
fname_len = strlen(fname);
|
||||||
|
if (fname_len < 16)
|
||||||
|
fname_len = 16;
|
||||||
|
|
||||||
if (fname_len + gap + status_len + 2 >= w) {
|
if (fname_len + gap + status_len + 2 >= w) {
|
||||||
if (16 + gap + status_len + 2 >= w)
|
if (16 + gap + status_len + 2 >= w)
|
||||||
|
Loading…
Reference in New Issue
Block a user