Browse Source

* editdraw.c (edit_status): Expand the filename field in the status
line to 16 characters even if the actual filename is shorter.

Roland Illig 20 years ago
parent
commit
63cae58f20
2 changed files with 7 additions and 0 deletions
  1. 5 0
      edit/ChangeLog
  2. 2 0
      edit/editdraw.c

+ 5 - 0
edit/ChangeLog

@@ -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

+ 2 - 0
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)