|
@ -1193,7 +1193,7 @@ sub search { |
|
|
$submit_b->grab_default; |
|
|
$submit_b->grab_default; |
|
|
$submit_b->signal_connect( "clicked", sub { |
|
|
$submit_b->signal_connect( "clicked", sub { |
|
|
my $keywords = $search1->get_text(); |
|
|
my $keywords = $search1->get_text(); |
|
|
|
|
|
|
|
|
# rindex |
|
|
# rindex |
|
|
if ($search_backwards->active) { |
|
|
if ($search_backwards->active) { |
|
|
|
|
|
|
|
@ -1204,6 +1204,9 @@ sub search { |
|
|
tr/A-Z/a-z/; |
|
|
tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
} |
|
|
} |
|
|
|
|
|
if ($tmp_k && $tmp_k ne $keywords) { |
|
|
|
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
|
|
|
} |
|
|
$offset = rindex($tmp_ct, $tmp_k); |
|
|
$offset = rindex($tmp_ct, $tmp_k); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -1228,6 +1231,9 @@ sub search { |
|
|
tr/A-Z/a-z/; |
|
|
tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
} |
|
|
} |
|
|
|
|
|
if ($tmp_k && $tmp_k ne $keywords) { |
|
|
|
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
|
|
|
} |
|
|
$offset = rindex($tmp_ct, $tmp_k, $offset); |
|
|
$offset = rindex($tmp_ct, $tmp_k, $offset); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
@ -1260,6 +1266,9 @@ sub search { |
|
|
tr/A-Z/a-z/; |
|
|
tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
} |
|
|
} |
|
|
|
|
|
if ($tmp_k && $tmp_k ne $keywords) { |
|
|
|
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
|
|
|
} |
|
|
$offset = index($tmp_ct, $tmp_k); |
|
|
$offset = index($tmp_ct, $tmp_k); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
@ -1284,6 +1293,9 @@ sub search { |
|
|
tr/A-Z/a-z/; |
|
|
tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
} |
|
|
} |
|
|
|
|
|
if ($tmp_k && $tmp_k ne $keywords) { |
|
|
|
|
|
($tmp_k = $keywords) =~ tr/A-Z/a-z/; |
|
|
|
|
|
} |
|
|
$offset = index($tmp_ct, $tmp_k, $offset); |
|
|
$offset = index($tmp_ct, $tmp_k, $offset); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|