Re: edit_status () prints bad status line (fwd)



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 pavelsh pp ru




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]