commit 328af46cb7d12614240b85c893bd267c9cb2eb96
Author: David Sorber <david.sorber@gmail.com>
Date:   Fri Nov 23 10:47:02 2018 -0500

    Minor but important search usability improvements. Adding case
    insensitive searching and removal of previous marks before starting a
    new search.

diff --git a/software/pwmgr/pwmgr.py b/software/pwmgr/pwmgr.py
index ff85d9d..2e83e54 100755
--- a/software/pwmgr/pwmgr.py
+++ b/software/pwmgr/pwmgr.py
@@ -19,7 +19,7 @@ SCRATCH_FILE_PATH = '/mnt/pw_ramdisk/chicken_soup.txt'
 ENC_TMP_FILE_PATH = '/home/dsorber/Documents/chicken_soup.enc.tmp'
 KEY_FILE_PATH = '/mnt/pw_ramdisk/.f05d11ef-000c-45c2-ae14-56b56c23e1c5'
 
-VERSION = '0.0.7'
+VERSION = '0.0.8'
 
 class SearchDialog(Gtk.Dialog):
 
@@ -391,7 +391,6 @@ class TextViewWindow(Gtk.Window):
         """
         Close handler
         """
-                
         if self.pass_data_loaded:
             # Hash the current text to see if any changes have been made
             current_hash = self._hash_textview()
@@ -441,8 +440,12 @@ class TextViewWindow(Gtk.Window):
         dialog.destroy()
 
     def search_and_mark(self, text, start):
+        # Remove existing marks before starting new search
+        self.textbuffer.remove_all_tags(self.textbuffer.get_start_iter(), 
+                                        self.textbuffer.get_end_iter())
+        
         end = self.textbuffer.get_end_iter()
-        match = start.forward_search(text, 0, end)
+        match = start.forward_search(text, Gtk.TextSearchFlags.CASE_INSENSITIVE, end)
 
         if match != None:
             match_start, match_end = match
