edit_status () prints bad status line


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

  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]