From 63cae58f20e6edaf76509d5594a3525c7b8b3070 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 23 Oct 2004 13:14:14 +0000 Subject: [PATCH] * editdraw.c (edit_status): Expand the filename field in the status line to 16 characters even if the actual filename is shorter. --- edit/ChangeLog | 5 +++++ edit/editdraw.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/edit/ChangeLog b/edit/ChangeLog index 6885b486e..f9c666bf9 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2004-10-23 Roland Illig + + * 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 * syntax.c (read_one_line): Fixed SEGV when reading syntax file diff --git a/edit/editdraw.c b/edit/editdraw.c index 40146a62b..278fe32bf 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -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)