From 9c7d1dbb6f943569aa18cf8aa79fd1d284970301 Mon Sep 17 00:00:00 2001
From: ridiculousfish <corydoras@ridiculousfish.com>
Date: Sat, 15 Feb 2014 16:14:41 -0800
Subject: [PATCH] Make the pager search field allow searching on the prefix

---
 pager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pager.cpp b/pager.cpp
index e9d23aa78..e98917ca7 100644
--- a/pager.cpp
+++ b/pager.cpp
@@ -366,7 +366,7 @@ bool pager_t::completion_info_passes_filter(const comp_t &info) const
     /* Match against the completion strings */
     for (size_t i=0; i < info.comp.size(); i++)
     {
-        if (string_fuzzy_match_string(needle, info.comp.at(i), limit).type != fuzzy_match_none)
+        if (string_fuzzy_match_string(needle, prefix + info.comp.at(i), limit).type != fuzzy_match_none)
         {
             return true;
         }