* 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:
Roland Illig 2004-10-23 13:14:14 +00:00
parent 11f8d4e2ea
commit 63cae58f20
2 changed files with 7 additions and 0 deletions

View File

@ -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>
* syntax.c (read_one_line): Fixed SEGV when reading syntax file

View File

@ -102,6 +102,8 @@ edit_status (WEdit *edit)
if (edit->filename)
fname = edit->filename;
fname_len = strlen(fname);
if (fname_len < 16)
fname_len = 16;
if (fname_len + gap + status_len + 2 >= w) {
if (16 + gap + status_len + 2 >= w)