Module Name: src
Committed By: tron
Date: Wed Sep 4 20:02:10 UTC 2013
Modified Files:
src/external/bsd/less/dist: jump.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/less/dist/jump.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/less/dist/jump.c
diff -u src/external/bsd/less/dist/jump.c:1.3 src/external/bsd/less/dist/jump.c:1.4
--- src/external/bsd/less/dist/jump.c:1.3 Wed Sep 4 19:44:21 2013
+++ src/external/bsd/less/dist/jump.c Wed Sep 4 20:02:10 2013
@@ -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 @@ jump_loc(pos, sline)
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)