edit_status () prints bad status line
- From: Pavel Tsekov <ptsekov gmx net>
- To: Roland Illig <roland illig gmx de>
- Cc: MC dev <mc-devel gnome org>
- Subject: edit_status () prints bad status line
- Date: Fri, 29 Oct 2004 15:46:40 +0200
Hello,
While working on the editor I noticed that the status line outputs
more characters than the actual number of columns.
printw ("%-*s", fname_len + gap, fname);
if (fname_len + gap < w)
printw ("%-*s ", w - (fname_len + gap), status);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You should change the line above to:
printw ("%-*s ", w - (fname_len + gap + 2), status);
Also, maybe it would be much better to declare a constant like
that:
static const int right _pad = 2;
and use it to replace all occurences of '2'.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]