Re: edit_status () prints bad status line
- From: "Pavel Tsekov" <ptsekov gmx net>
- To: Leonard den Ottolander <leonard den ottolander nl>
- Cc: mc-devel gnome org
- Subject: Re: edit_status () prints bad status line
- Date: Fri, 29 Oct 2004 21:49:15 +0200 (MEST)
Hello,
> On Fri, 2004-10-29 at 15:46, Pavel Tsekov wrote:
> > printw ("%-*s ", w - (fname_len + gap + 2), status);
>
> Although I see no drawing errors after applying this patch I wonder
> where the 2 right pad spaces are printed out, since
>
> w - (fname_len + gap + 2) + fname_len + gap = w - 2
Yes. To see the error you need MC linked against ncurses.
1) mcedit /some/file
2) Ctrl + L
3) Watch the second line
`w' is the number of columns, so
`w - (fname_len + gap)' is everything except
fname and the gap, and then you have two more spaces.
For further explanation read my email regarding the
internal editor + ncurses, the section which quotes
the `addch' manpage. Also read the printf (3) manpage
regarding the use of '*'.
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]