Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/less/dist Don't ring the terminal bell if the u...
details: https://anonhg.NetBSD.org/src/rev/cda7a1789107
branches: trunk
changeset: 789718:cda7a1789107
user: tron <tron%NetBSD.org@localhost>
date: Wed Sep 04 20:02:10 2013 +0000
description:
Don't ring the terminal bell if the user forward-searches for a string
that appears in the first displayed line.
This patch was supplied by M. Levinson in PR bin/45451.
diffstat:
external/bsd/less/dist/jump.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d4cdb6e56c9d -r cda7a1789107 external/bsd/less/dist/jump.c
--- a/external/bsd/less/dist/jump.c Wed Sep 04 19:51:37 2013 +0000
+++ b/external/bsd/less/dist/jump.c Wed Sep 04 20:02:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jump.c,v 1.3 2013/09/04 19:44:21 tron Exp $ */
+/* $NetBSD: jump.c,v 1.4 2013/09/04 20:02:10 tron Exp $ */
/*
* Copyright (C) 1984-2012 Mark Nudelman
@@ -198,7 +198,7 @@
nline -= sline;
if (nline > 0)
forw(nline, position(BOTTOM_PLUS_ONE), 1, 0, 0);
- else
+ else if (nline < 0)
back(-nline, position(TOP), 1, 0);
#if HILITE_SEARCH
if (show_attn)
Home |
Main Index |
Thread Index |
Old Index