edit_status () prints bad status line
Pavel Tsekov
ptsekov at gmx.net
Fri Oct 29 13:46:40 UTC 2004
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'.
More information about the mc-devel
mailing list