aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-11 19:04:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-11 19:04:55 +0000
commitedcebb2ccc1d9dff61cbd2cf688598e28aa576b0 (patch)
treeb481bdcdc0a131e23df132227f253f7e7b235828 /mansearch.h
parent90abf6007b8853890d1204e9249848383de26416 (diff)
downloadmandoc-edcebb2ccc1d9dff61cbd2cf688598e28aa576b0.tar.gz
mandoc-edcebb2ccc1d9dff61cbd2cf688598e28aa576b0.tar.zst
mandoc-edcebb2ccc1d9dff61cbd2cf688598e28aa576b0.zip
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.
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h3
1 files changed, 2 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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