From edcebb2ccc1d9dff61cbd2cf688598e28aa576b0 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 11 Nov 2014 19:04:55 +0000 Subject: In man(1) mode without -a, stop searching after the first manual tree that contained at least one match in order to not prefer mdoc(1) from ports over mdoc(7). As a bonus, this results in a speedup. --- mansearch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mansearch.h') diff --git a/mansearch.h b/mansearch.h index 0aab4e76..444f6621 100644 --- a/mansearch.h +++ b/mansearch.h @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.18 2014/09/03 18:09:14 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.19 2014/11/11 19:04:55 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -94,6 +94,7 @@ struct mansearch { const char *sec; /* mansection/NULL */ const char *outkey; /* show content of this macro */ enum argmode argmode; /* interpretation of arguments */ + int firstmatch; /* first matching database only */ }; __BEGIN_DECLS -- cgit v1.2.3