From 293a535aa4c47bd17a17d00fc7cdf10be92d6780 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 16 May 2014 20:42:18 -0400 Subject: [PATCH] Fix crash with mouse input in search plugin --- plugins/search.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/search.cpp b/plugins/search.cpp index e0213bf06..72001275c 100644 --- a/plugins/search.cpp +++ b/plugins/search.cpp @@ -180,6 +180,10 @@ public: { // Query typing mode + if (input->empty()) + { + return false; + } df::interface_key last_token = *input->rbegin(); if (last_token >= interface_key::STRING_A032 && last_token <= interface_key::STRING_A126) {