summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index d91d2512b7..fa03f8b291 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -173,6 +173,11 @@ void InvEntry::select(int qty)
MenuEntry::select(qty);
}
+std::string InvEntry::get_filter_text() const
+{
+ return (filtering_item_prefix(*item) + " " + get_text());
+}
+
std::string InvEntry::get_text() const
{
std::ostringstream tstr;