aboutsummaryrefslogtreecommitdiffstats
path: root/apps/console/diatheke/corediatheke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/console/diatheke/corediatheke.cpp')
-rw-r--r--apps/console/diatheke/corediatheke.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/console/diatheke/corediatheke.cpp b/apps/console/diatheke/corediatheke.cpp
index 6c32bbe..3b43450 100644
--- a/apps/console/diatheke/corediatheke.cpp
+++ b/apps/console/diatheke/corediatheke.cpp
@@ -5,6 +5,7 @@
// see accompanying LICENSE file for license details
#include "corediatheke.h"
+#include <regex.h>
#include <iostream>
#include <string>
#include <list>
@@ -219,7 +220,7 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI
querytype = QT_LD;
//do search stuff
- searchtype = 1 - searchtype;
+ char st = 1 - searchtype;
if (querytype == QT_BIBLE) {
*output << "Verses containing \"";
}
@@ -227,7 +228,7 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI
*output << ref;
*output << "\"-- ";
- listkey = target->Search(ref, searchtype);
+ listkey = target->Search(ref, st, REG_ICASE);
if (strlen((const char*)listkey)) {
if (!listkey.Error()) {