Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Aug 2007 22:41:02 +0800
From:      Xin LI <delphij@delphij.net>
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        re@FreeBSD.ORG, Rong-en Fan <grafan@gmail.com>, delphij@freebsd.org, current@freebsd.org
Subject:   Re: TERM={xterm-r5,xterm-r6} behaving badly with man(1)
Message-ID:  <46B1ECFE.6070806@delphij.net>
In-Reply-To: <Pine.GSO.4.64.0707292347510.29296@sea.ntplx.net>
References:  <f8hmgs$2c1l$1@FreeBSD.csie.nctu.edu.tw>	<20070729124116.GA4489@saltmine.radix.net>	<Pine.GSO.4.64.0707290904030.25963@sea.ntplx.net>	<20070729135024.GA473@saltmine.radix.net>	<Pine.GSO.4.64.0707291018570.26371@sea.ntplx.net>	<20070729144202.GA17101@saltmine.radix.net>	<46ACA806.5030704@FreeBSD.org>	<6eb82e0707290944s2531e32cuf50c9f7c60509070@mail.gmail.com> <Pine.GSO.4.64.0707292347510.29296@sea.ntplx.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Daniel Eischen wrote:
> On Mon, 30 Jul 2007, Rong-en Fan wrote:
[...]
> It looks like the less import broke this behavior (inhibiting ti/te
> when invoked as more).  See the changes between r1.7 and r1.8 of
> contrib/less/screen.c.
[...]
> This seems to fix it:
> 
> Index: main.c
> ===================================================================
> RCS file: /opt/FreeBSD/cvs/src/contrib/less/main.c,v
> retrieving revision 1.9
> diff -u -r1.9 main.c
> --- main.c      23 Jun 2007 15:28:00 -0000      1.9
> +++ main.c      30 Jul 2007 02:58:39 -0000
> @@ -165,7 +165,7 @@
>                 quit(QUIT_OK);
>         }
> 
> -       if (less_is_more && get_quit_at_eof())
> +       if (less_is_more || get_quit_at_eof())
>                 no_init = quit_if_one_screen = TRUE;

This sounds reasonable to me, actually more(1) implies quit_at_eof.

To re@, may I commit this change against -HEAD?

Cheers,


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGse0EOfuToMruuMARAne3AJ4632SA+n32cfchSIMNzyJJy7YKSwCfQ/fj
QTsxY9e0Bwi6JTKN8Wxf9uk=
=hFIG
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B1ECFE.6070806>