[devhelp] SearchContext: if page_id without keywords, match link only once
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] SearchContext: if page_id without keywords, match link only once
- Date: Fri, 19 Jan 2018 12:14:08 +0000 (UTC)
commit 5d87696a0a020674f96f54efee4fa46ee5731fef
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jan 19 13:10:46 2018 +0100
SearchContext: if page_id without keywords, match link only once
src/dh-search-context.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-search-context.c b/src/dh-search-context.c
index b4f112f..80d4fe1 100644
--- a/src/dh-search-context.c
+++ b/src/dh-search-context.c
@@ -360,8 +360,10 @@ _dh_search_context_match_link (DhSearchContext *search,
return FALSE;
if (search->keywords == NULL)
- /* Show all in the page. */
- return TRUE;
+ /* Show all in the page, but only if prefix=TRUE, to not
+ * match two times the same link.
+ */
+ return prefix;
}
if (search->keywords == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]