Just for info, here are the simplified terms to facilitate before & after
comparison.

Stefan

On Thu, Aug 05, 2010 at 08:16:55AM +0200, martin.kers...@cwi.nl wrote:
> Changeset: ffcd6ef3b2dd for MonetDB
> URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ffcd6ef3b2dd
> Modified Files:
>       clients/src/mapiclient/mclient.mx
> Branch: default
> Log Message:
> 
> Reserve border space
> The pagewidth should be less to accomodate borders to be drawn.
> 
> 
> diffs (23 lines):
> 
> diff -r 2ba10c414f4c -r ffcd6ef3b2dd clients/src/mapiclient/mclient.mx
> --- a/clients/src/mapiclient/mclient.mx       Thu Jul 22 10:27:14 2010 +0200
> +++ b/clients/src/mapiclient/mclient.mx       Tue Aug 03 06:59:10 2010 +0200
> @@ -1055,8 +1055,8 @@
>                                          available space (+1 so we
>                                          always fully fill the
>                                          terminal) */
> -                                     len[i] = 1 + (pagewidth - 2 - ((fields 
> * 3) - 1)) / fields;

==                                      len[i] = 1 + (pagewidth - 1 - (fields * 
3)) / fields;
==                                      len[i] = 1 + (pagewidth - 1) / fields - 
3;

==                                      len[i] = (pagewidth - 1) / fields - 2;

==                                      len[i] = (ws.ws_col - 1) / fields - 2;

> -                             }
> +                                     len[i] =  (pagewidth - ((fields * 3) - 
> 3)) / fields;

==                                      len[i] =  (pagewidth + 3) / fields - 3;

==                                      len[i] =  (ws.ws_col - 10 + 3) / fields 
- 3;

==                                      len[i] =  (ws.ws_col - 7) / fields - 3;

> +                             } 
>                               if (len[i] < MINCOLSIZE)
>                                       len[i] = MINCOLSIZE;
>                               s = mapi_get_name(hdl, i);
> @@ -1256,7 +1256,7 @@
>               struct winsize ws;
>  
>               if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) == 0 && ws.ws_col > 0)
> -                     pagewidth = ws.ws_col;
> +                     pagewidth = ws.ws_col - 10;  /* reserve some space for 
> sliders et al */
>               else
>  #endif
>                       pagewidth = DEFWIDTH;
> _______________________________________________
> Checkin-list mailing list
> Checkin-list@monetdb.org
> http://mail.monetdb.org/mailman/listinfo/checkin-list

-- 
| Dr. Stefan Manegold | mailto:stefan.maneg...@cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4199       |
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to