From d9562242c4b12aa4ea7516ef5a2f9483cc8e67fd Mon Sep 17 00:00:00 2001
From: Alex Thiessen <alex.thiessen.de+github@gmail.com>
Date: Sun, 23 Jan 2022 02:05:39 +0100
Subject: [PATCH] bin/autojump: Make the test pass

Fixes https://github.com/wting/autojump/issues/348
---
 bin/autojump | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/autojump b/bin/autojump
index 2b2ec38..52f9d2d 100755
--- a/bin/autojump
+++ b/bin/autojump
@@ -196,11 +196,11 @@ def find_matches(entries, needles, check_entries=True):
 
     return ifilter(
         lambda entry: not is_cwd(entry) and path_exists(entry),
-        chain(
+        set(chain(
             match_consecutive(needles, data, ignore_case),
             match_fuzzy(needles, data, ignore_case),
             match_anywhere(needles, data, ignore_case),
-        ),
+        )),
     )