line |
true |
false |
branch |
25
|
0 |
0 |
if defined $$attr{'match_case'} and $$attr{'match_case'} |
27
|
0 |
0 |
if (defined $$attr{'match_whole_word'} and $$attr{'match_whole_word'}) { } |
30
|
0 |
0 |
if $$attr{'match_word_begin'} and $$attr{'match_word_begin'} |
33
|
0 |
0 |
if defined $$attr{'match_regex'} and $$attr{'match_regex'} |
44
|
0 |
0 |
if (defined $$config_tree{'find'}{'history'}) |
45
|
0 |
0 |
if (ref $$config_tree{'find'}{'history'} eq 'ARRAY') { } |
49
|
0 |
0 |
if (defined $$config_tree{'replace'}{'history'}) |
50
|
0 |
0 |
if (ref $$config_tree{'replace'}{'history'} eq 'ARRAY') { } |
57
|
0 |
0 |
if ($$history{'use'}) { } |
86
|
0 |
0 |
unless $find_item |
90
|
0 |
0 |
if (defined $new and !defined($old) || $new ne $old) |
102
|
0 |
0 |
defined $find_item && $find_item ? : |
103
|
0 |
0 |
defined $replace_item && $replace_item ? : |
105
|
0 |
0 |
unless $replace_item |
109
|
0 |
0 |
if (defined $new and !defined($old) || $new ne $old) |
124
|
0 |
0 |
unless $$history{'use'} |
126
|
0 |
0 |
if $$history{'remember_only_matched'} and not $found_match |
128
|
0 |
0 |
if ($find_item and $find_history[0] ne $find_item) |
130
|
0 |
0 |
if ($find_history[$_] eq $find_item) |
134
|
0 |
0 |
if $_ == $$history{'length'} - 1 |
144
|
0 |
0 |
if ($replace_item) |
146
|
0 |
0 |
if ($replace_history[$_] eq $replace_item) |
150
|
0 |
0 |
if $_ == $$history{'length'} - 1 |
162
|
0 |
0 |
if ($pos != $sel_end) |
174
|
0 |
0 |
if ($attr eq 'match_case' or $attr eq 'match_word_begin' or $attr eq 'match_whole_word' or $attr eq 'match_regex' or $attr eq 'auto_wrap' or $attr eq 'incremental') |
186
|
0 |
0 |
if ($attr eq 'match_case' or $attr eq 'match_word_begin' or $attr eq 'match_whole_word' or $attr eq 'match_regex' or $attr eq 'auto_wrap' or $attr eq 'incremental') |
192
|
0 |
0 |
if (not defined _attributes()->{$attr}) { } |
195
|
0 |
0 |
if substr($attr, 0, 1) eq 'm' |
233
|
0 |
0 |
if (_exist_find_item()) |
235
|
0 |
0 |
if (_find_first() > -1) |
241
|
0 |
0 |
if defined $old_pos |
250
|
0 |
0 |
if (_exist_find_item()) { } |
260
|
0 |
0 |
if $search_result == -1 |
272
|
0 |
0 |
if defined $old_pos |
281
|
0 |
0 |
if (_exist_find_item()) |
285
|
0 |
0 |
if ($return == -1) |
286
|
0 |
0 |
if (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
287
|
0 |
0 |
if $$attr{'auto_wrap'} |
293
|
0 |
0 |
if Kephra::Document::Data::current_nr() == 0 and not $$attr{'auto_wrap'} |
299
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
304
|
0 |
0 |
if ($return == -1) { } |
316
|
0 |
0 |
if (_exist_find_item()) |
320
|
0 |
0 |
if ($return == -1) |
321
|
0 |
0 |
if (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
322
|
0 |
0 |
if $$attr{'auto_wrap'} |
328
|
0 |
0 |
if Kephra::Document::Data::current_nr() == Kephra::Document::Data::last_nr() and not $$attr{'auto_wrap'} |
334
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
339
|
0 |
0 |
if ($return == -1) { } |
350
|
0 |
0 |
if (_exist_find_item()) |
355
|
0 |
0 |
if ($return == -1) |
356
|
0 |
0 |
if (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
357
|
0 |
0 |
if $$attr{'auto_wrap'} |
363
|
0 |
0 |
if Kephra::Document::Data::current_nr() == 0 and not $$attr{'auto_wrap'} |
368
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
373
|
0 |
0 |
if $_ == 1 |
374
|
0 |
0 |
if ($return == -1) { } |
384
|
0 |
0 |
if (_exist_find_item()) |
389
|
0 |
0 |
if ($return == -1) |
390
|
0 |
0 |
if (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
391
|
0 |
0 |
if $$attr{'auto_wrap'} |
397
|
0 |
0 |
if Kephra::Document::Data::current_nr() == Kephra::Document::Data::last_nr() and not $$attr{'auto_wrap'} |
403
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
408
|
0 |
0 |
if $_ == 1 |
409
|
0 |
0 |
if ($return == -1) { } |
423
|
0 |
0 |
if (_exist_find_item()) |
425
|
0 |
0 |
if ($menu_call and $sel_begin != $sel_end and $sel_end - $sel_begin > $len) |
430
|
0 |
0 |
if (get_range() eq 'selection') { } |
433
|
0 |
0 |
if ($return > -1 and $ep->GetCurrentPos + $len <= $sel_end) { } |
441
|
0 |
0 |
if (get_range() eq 'open_docs' and $sel_begin == $ep->GetSelectionStart || $return == -1) |
448
|
0 |
0 |
if Kephra::Document::Data::current_nr() == 0 and not $$attr{'auto_wrap'} |
453
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
457
|
0 |
0 |
if ($return > -1) { } |
477
|
0 |
0 |
if (_exist_find_item()) |
479
|
0 |
0 |
if ($menu_call and $sel_begin != $sel_end and $sel_end - $sel_begin > $len) |
484
|
0 |
0 |
if (get_range() eq 'selection') { } |
487
|
0 |
0 |
if ($return > -1 and $ep->GetCurrentPos >= $sel_begin) { } |
495
|
0 |
0 |
if (get_range() eq 'open_docs' and $sel_begin == $ep->GetSelectionStart || $return == -1) |
502
|
0 |
0 |
if Kephra::Document::Data::current_nr() == Kephra::Document::Data::last_nr() and not $$attr{'auto_wrap'} |
508
|
0 |
0 |
if Kephra::Document::Data::current_nr() == $begin_doc |
512
|
0 |
0 |
if ($return > -1) { } |
527
|
0 |
0 |
if ($ep->GetSelectionStart != $ep->GetSelectionEnd) |
536
|
0 |
0 |
if ($ep->GetSelectionStart != $ep->GetSelectionEnd) |
551
|
0 |
0 |
if ($menu_call and $sel_begin != $sel_end and $sel_end - $sel_begin > $len) |
556
|
0 |
0 |
if (get_range() eq 'selection') { } |
|
0 |
0 |
elsif (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
560
|
0 |
0 |
if $ep->GetCurrentPos + $len >= $sel_end |
593
|
0 |
0 |
if (_exist_find_item()) |
603
|
0 |
0 |
if $menu_call and $sel_begin != $sel_end and $sel_end - $sel_begin > $len |
608
|
0 |
0 |
if (get_range() eq 'selection') { } |
|
0 |
0 |
elsif (get_range() eq 'document') { } |
|
0 |
0 |
elsif (get_range() eq 'open_docs') { } |
616
|
0 |
0 |
if $answer == &Wx::wxCANCEL |
633
|
0 |
0 |
if $ep->GetCurrentPos + $len >= $sel_end |
637
|
0 |
0 |
if $answer == &Wx::wxCANCEL |
638
|
0 |
0 |
if ($answer == &Wx::wxYES) { } |