fix the -F option
This commit is contained in:
parent
8b433f058a
commit
d039b453ff
17
less-392-Foption.patch
Normal file
17
less-392-Foption.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- less-392/screen.c.rasold 2005-10-21 13:54:22.000000000 +0200
|
||||||
|
+++ less-392/screen.c 2005-10-21 13:57:58.000000000 +0200
|
||||||
|
@@ -1547,8 +1547,12 @@
|
||||||
|
#if !MSDOS_COMPILER
|
||||||
|
if (!no_keypad)
|
||||||
|
tputs(sc_e_keypad, sc_height, putchr);
|
||||||
|
- if (!no_init)
|
||||||
|
- tputs(sc_deinit, sc_height, putchr);
|
||||||
|
+ if (!no_init){
|
||||||
|
+ extern int quit_if_one_screen;
|
||||||
|
+ if(quit_if_one_screen == FALSE){
|
||||||
|
+ tputs(sc_deinit, sc_height, putchr);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
#else
|
||||||
|
/* Restore system colors. */
|
||||||
|
SETCOLORS(sy_fg_color, sy_bg_color);
|
@ -1,15 +1,15 @@
|
|||||||
Summary: A text file browser similar to more, but better.
|
Summary: A text file browser similar to more, but better.
|
||||||
Name: less
|
Name: less
|
||||||
Version: 392
|
Version: 392
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||||
Source1: lesspipe.sh
|
Source1: lesspipe.sh
|
||||||
Source2: less.sh
|
Source2: less.sh
|
||||||
Source3: less.csh
|
Source3: less.csh
|
||||||
|
|
||||||
Patch0: less-382-fixline.patch
|
Patch0: less-382-fixline.patch
|
||||||
|
Patch1: less-392-Foption.patch
|
||||||
|
|
||||||
URL: http://www.greenwoodsoftware.com/less/
|
URL: http://www.greenwoodsoftware.com/less/
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
@ -28,6 +28,7 @@ files, and you'll use it frequently.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .fixline
|
%patch0 -p1 -b .fixline
|
||||||
|
%patch1 -p1 -b .Foption
|
||||||
chmod -R a+w *
|
chmod -R a+w *
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -53,6 +54,9 @@ install -c -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 21 2005 Jindrich Novy <jnovy@redhat.com> 392-2
|
||||||
|
- fix the -F option (#79650), thanks to Petr Raszyk
|
||||||
|
|
||||||
* Wed Oct 19 2005 Jindrich Novy <jnovy@redhat.com> 392-1
|
* Wed Oct 19 2005 Jindrich Novy <jnovy@redhat.com> 392-1
|
||||||
- update to less-392 - fixes #122847 and enhances UTF8 support
|
- update to less-392 - fixes #122847 and enhances UTF8 support
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user