edit_status () prints bad status line (fwd)

Pavel Shirshov (pchel) me at pavelsh.pp.ru
Wed Nov 10 14:09:51 UTC 2004


Hello Pavel,

Tuesday, November 9, 2004, 7:31:34 PM, you wrote:

PT> While working on the editor I noticed that the status line outputs
PT> more characters than the actual number of columns.

PT>     printw ("%-*s", fname_len + gap, fname);
PT>     if (fname_len + gap < w)
PT>         printw ("%-*s  ", w - (fname_len + gap), status);
PT>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PT> You should change the line above to:

PT>   printw ("%-*s  ", w - (fname_len + gap + 2), status);

Committed. Thx.

-- 
Best regards,
 Pavel                            mailto:me at pavelsh.pp.ru




More information about the mc-devel mailing list