| line |
true |
false |
branch |
|
122
|
3 |
11 |
scalar @_ > 0 ? : |
|
127
|
11 |
3 |
unless defined $term_IN |
|
128
|
11 |
3 |
unless defined $term_OUT |
|
184
|
11 |
3 |
unless defined $inDOS |
|
190
|
0 |
14 |
if ($inDOS and not defined $TIOCGWINSZ) |
|
199
|
0 |
14 |
if defined &TIOCGETP |
|
200
|
0 |
14 |
if defined &TIOCSETP |
|
201
|
0 |
14 |
if defined &TIOCGWINSZ |
|
202
|
0 |
14 |
if defined &FIONREAD |
|
203
|
0 |
14 |
if defined &TCGETS |
|
204
|
0 |
14 |
if defined &TCSETS |
|
205
|
0 |
14 |
if defined &TCXONC |
|
206
|
11 |
3 |
unless defined $TIOCGETP |
|
207
|
11 |
3 |
unless defined $TIOCSETP |
|
208
|
11 |
3 |
unless defined $TIOCGWINSZ |
|
209
|
11 |
3 |
unless defined $FIONREAD |
|
210
|
11 |
3 |
unless defined $TCGETS |
|
211
|
11 |
3 |
unless defined $TCSETS |
|
212
|
11 |
3 |
unless defined $TCXONC |
|
215
|
0 |
14 |
if defined &ECHO |
|
216
|
0 |
14 |
if defined &RAW |
|
217
|
11 |
3 |
unless defined $RAW |
|
218
|
11 |
3 |
unless defined $ECHO |
|
221
|
11 |
3 |
unless defined $IGNBRK |
|
222
|
11 |
3 |
unless defined $BRKINT |
|
223
|
11 |
3 |
unless defined $ISTRIP |
|
224
|
11 |
3 |
unless defined $INLCR |
|
225
|
11 |
3 |
unless defined $IGNCR |
|
226
|
11 |
3 |
unless defined $ICRNL |
|
227
|
11 |
3 |
unless defined $OPOST |
|
228
|
11 |
3 |
unless defined $ISIG |
|
229
|
11 |
3 |
unless defined $ICANON |
|
230
|
11 |
3 |
unless defined $TCOON |
|
244
|
11 |
3 |
unless defined $sgttyb_t |
|
245
|
11 |
3 |
unless defined $winsz_t |
|
259
|
0 |
14 |
$inDOS ? : |
|
260
|
11 |
3 |
unless defined $rl_scroll_nextline |
|
261
|
0 |
11 |
$inDOS ? : |
|
|
11 |
3 |
unless defined $rl_last_pos_can_backspace |
|
268
|
11 |
3 |
unless defined $rl_completion_function |
|
273
|
11 |
3 |
unless defined $rl_readline_name |
|
275
|
11 |
3 |
unless defined $rl_max_numeric_arg |
|
276
|
11 |
3 |
unless defined $rl_OperateCount |
|
277
|
11 |
3 |
unless defined $rl_completion_suppress_append |
|
282
|
11 |
3 |
unless @$rl_term_set |
|
299
|
89 |
275 |
if defined ${"$KeyMap{'name'}_27";}[ord $_] |
|
302
|
0 |
14 |
if ($inDOS) |
|
396
|
0 |
14 |
if ($ENV{'TERM'} and $ENV{'TERM'} eq 'emacs' || $ENV{'TERM'} eq 'dumb') { } |
|
|
0 |
14 |
elsif (not -c $term_IN and $term_IN eq \*STDIN) { } |
|
402
|
14 |
0 |
unless defined $rl_NoInitFromFile |
|
426
|
70 |
539 |
if ($default ne '') |
|
429
|
0 |
0 |
unless $autoload_broken or defined &$func |
|
433
|
70 |
539 |
if @_ > 0 |
|
441
|
0 |
0 |
if not @$keys or $c == 1 or not defined(my $in = &getc_with_pending) |
|
506
|
65 |
8161 |
if ($key =~ s/^$regex//) |
|
519
|
0 |
3811 |
if ($name_or_macro =~ /^"((?:\\.|[^\\\"])*)"|^'((?:\\.|[^\\\'])*)'/s) { } |
|
552
|
0 |
3695 |
if (defined $KeyMap[$key] and $KeyMap[$key] ne 'F_PrefixMeta') |
|
553
|
0 |
0 |
if $^W |
|
558
|
539 |
3156 |
unless %$map |
|
565
|
24 |
3787 |
if ($key eq 'default') { } |
|
568
|
0 |
24 |
if $^W and defined $KeyMap{'default'} |
|
573
|
0 |
746 |
if (defined $KeyMap[$key] and $KeyMap[$key] eq 'F_PrefixMeta' and $func ne 'PrefixMeta') |
|
576
|
0 |
0 |
if $^W |
|
660
|
1044 |
2767 |
if ($key =~ /"((?:\\.|[^\\])*)"/s) { } |
|
666
|
751 |
2016 |
if $key =~ s/\b(M|Meta)-//i |
|
670
|
0 |
2767 |
if ($key =~ /^(space|spc)$/i) { } |
|
|
56 |
2711 |
elsif ($key =~ /^(rubout|del)$/i) { } |
|
|
28 |
2683 |
elsif ($key =~ /^tab$/i) { } |
|
|
0 |
2683 |
elsif ($key =~ /^(return|ret)$/i) { } |
|
|
0 |
2683 |
elsif ($key =~ /^(newline|lfd)$/i) { } |
|
|
0 |
2683 |
elsif ($key =~ /^(escape|esc)$/i) { } |
|
|
0 |
2683 |
elsif (length $key > 1) { } |
|
677
|
0 |
0 |
if $^W |
|
680
|
686 |
2081 |
if $isctrl |
|
685
|
0 |
3811 |
if $DEBUG |
|
714
|
0 |
0 |
if ($keymap_name eq 'emacs') { } |
|
|
0 |
0 |
elsif ($keymap_name eq 'vi') { } |
|
|
0 |
0 |
elsif ($keymap_name eq 'vicmd') { } |
|
|
0 |
0 |
elsif ($keymap_name eq 'vipos') { } |
|
|
0 |
0 |
elsif ($keymap_name eq 'visearch') { } |
|
781
|
0 |
0 |
if $val =~ /^(on|off)$/i |
|
783
|
0 |
0 |
if $var eq 'visible-stats' |
|
791
|
0 |
0 |
unless defined ${'Term::ReadLine::Perl5::readline::';}{"var_$_"} |
|
794
|
0 |
0 |
if (not defined $V) { } |
|
|
0 |
0 |
elsif (not defined $V{$val}) { } |
|
795
|
0 |
0 |
if $^W |
|
799
|
0 |
0 |
if $^W |
|
837
|
2 |
2 |
if ($pattern =~ m[^~[^/]*$]) { } |
|
838
|
1 |
1 |
if ($have_getpwent and length $pattern > 1) { } |
|
839
|
1 |
0 |
-d $_ ? : |
|
842
|
1 |
0 |
-d $_ ? : |
|
845
|
1 |
1 |
-d $_ ? : |
|
868
|
0 |
0 |
if ($var_CompleteAddsuffix) |
|
870
|
0 |
0 |
if (-l $_) { } |
|
|
0 |
0 |
elsif (-d _) { } |
|
|
0 |
0 |
elsif (-x _) { } |
|
|
0 |
0 |
elsif (-S _ or -p _) { } |
|
892
|
3 |
8 |
if /^\s*(#|$)/ |
|
894
|
0 |
8 |
if (/^\$if\s+(.*)/) { } |
|
|
0 |
8 |
elsif (/^\$endif\b/) { } |
|
|
0 |
8 |
elsif (/^\$else\b/) { } |
|
|
0 |
8 |
elsif (/^\$include\s+(\S+)/) { } |
|
|
0 |
8 |
elsif ($action[$#action] ne 'exec') { } |
|
|
0 |
8 |
elsif (/\s*set\s+(\S+)\s+(\S*)/) { } |
|
|
0 |
8 |
elsif (/^\s*(\S+):\s+("(?:\\.|[^\\\"])*"|'(\\.|[^\\\'])*')/) { } |
|
|
8 |
0 |
elsif (/^\s*(\S+|"[^\"]+"):\s+(\S+)/) { } |
|
897
|
0 |
0 |
if ($action[$#action] ne 'exec') { } |
|
905
|
0 |
0 |
if ($test =~ /term=([a-z0-9]+)/) { } |
|
910
|
0 |
0 |
$test ? : |
|
914
|
0 |
0 |
if @level == 0 |
|
919
|
0 |
0 |
if @level == 0 or $level[$#level] ne 'if' |
|
922
|
0 |
0 |
if ($action[$#action] eq 'skip') { } |
|
929
|
0 |
0 |
if ($include_depth > $max_include_depth) { } |
|
947
|
0 |
0 |
if $^W |
|
988
|
0 |
0 |
if $Term::ReadLine::toloop and defined &Tk::DoOneEvent |
|
1046
|
1 |
84 |
if $count < 0 |
|
1062
|
1 |
35 |
if $count < 0 |
|
1066
|
4 |
32 |
if &OnSecondByte($D) |
|
1082
|
1 |
10 |
if $count < 0 |
|
1105
|
1 |
3 |
if $count < 0 |
|
1127
|
0 |
0 |
if $count != 1 |
|
1129
|
0 |
0 |
unless defined $rl_CLEAR |
|
1217
|
0 |
0 |
$_[0] >= 0 ? : |
|
1229
|
0 |
0 |
$_[0] >= 0 ? : |
|
1243
|
0 |
0 |
$_[0] >= 0 ? : |
|
1257
|
0 |
0 |
$_[0] >= 0 ? : |
|
1263
|
0 |
0 |
if $count == 1 |
|
1265
|
0 |
0 |
if $end > @rl_History |
|
1267
|
0 |
0 |
if $start < 0 |
|
1273
|
0 |
0 |
unless $Vi_mode |
|
1274
|
0 |
0 |
if $Vi_mode |
|
1278
|
0 |
0 |
if $start > 0 |
|
1282
|
0 |
0 |
$i == $rl_HistoryIndex ? : |
|
|
0 |
0 |
$i == $rl_HistoryIndex ? : |
|
|
0 |
0 |
$i < @rl_History ? : |
|
1292
|
0 |
0 |
if $end < @rl_History |
|
1297
|
0 |
0 |
if $line eq '' and $Vi_mode |
|
1316
|
0 |
0 |
if remove_selection() |
|
1319
|
0 |
0 |
if $count < 0 |
|
1320
|
0 |
0 |
if (length $line == 0) |
|
1321
|
0 |
0 |
if $lastcommand ne 'F_DeleteChar' |
|
1324
|
0 |
0 |
if ($D == length $line) |
|
1326
|
0 |
0 |
if $var_TcshCompleteMode |
|
1331
|
0 |
0 |
if $D == $oldD |
|
1344
|
0 |
0 |
if remove_selection() |
|
1347
|
0 |
0 |
if $count < 0 |
|
1350
|
0 |
0 |
if $D == $oldD |
|
1395
|
0 |
0 |
if ($InsertMode) { } |
|
1414
|
0 |
0 |
if ($D == length $line and $D >= 2) { } |
|
|
0 |
0 |
elsif ($D >= 1) { } |
|
1433
|
0 |
0 |
unless $c |
|
1439
|
0 |
0 |
if $p1 == $p0 |
|
1441
|
0 |
0 |
if ($c > 0) { } |
|
1452
|
0 |
0 |
if $p3 == $p2 or $p2 < $p1 |
|
1456
|
0 |
0 |
$c > 0 ? : |
|
1519
|
0 |
0 |
if $count < 0 |
|
1532
|
0 |
0 |
if $count < 0 |
|
1533
|
0 |
0 |
if $D == 0 |
|
1545
|
0 |
0 |
if $D == 0 |
|
1559
|
0 |
0 |
if $count < 0 |
|
1576
|
0 |
0 |
if $count < 0 |
|
1590
|
0 |
0 |
if $D == 0 |
|
1605
|
0 |
0 |
unless $line_rl_mark == $rl_HistoryIndex |
|
1606
|
0 |
0 |
if $rl_mark > length $line |
|
1618
|
0 |
0 |
unless $line_rl_mark == $rl_HistoryIndex |
|
1619
|
0 |
0 |
if $rl_mark > length $line |
|
1621
|
0 |
0 |
if $s > $e |
|
1623
|
0 |
0 |
unless $LastCommandKilledText |
|
1664
|
0 |
0 |
if $doingNumArg |
|
1670
|
0 |
0 |
if (defined $KeyMap[$ord] and $KeyMap[$ord] eq 'F_UniversalArgument') { } |
|
|
0 |
0 |
elsif ($ord == 45 and not $sawDigit) { } |
|
|
0 |
0 |
elsif ($ord >= 48 and $ord <= 57) { } |
|
1675
|
0 |
0 |
$NumericArg < 0 ? : |
|
1676
|
0 |
0 |
if ($sawDigit) { } |
|
1686
|
0 |
0 |
$sawDigit ? : |
|
1690
|
0 |
0 |
if ($NumericArg > $rl_max_numeric_arg) { } |
|
|
0 |
0 |
elsif ($NumericArg < -$rl_max_numeric_arg) { } |
|
1739
|
0 |
0 |
if ($lastcommand eq 'F_Complete') { } |
|
1740
|
0 |
0 |
if ($var_TcshCompleteMode and @tcsh_complete_selections > 0) { } |
|
1748
|
0 |
0 |
unless &complete_internal('?') |
|
1752
|
0 |
0 |
unless &complete_internal("\t") |
|
1794
|
14 |
0 |
unless defined $file |
|
1795
|
5 |
9 |
unless (defined $file) |
|
1796
|
0 |
5 |
unless defined $HOME |
|
1824
|
0 |
0 |
if (@undo) { } |
|
1840
|
0 |
0 |
if ($rl_HistoryIndex >= $#rl_History + 1) { } |
|
1861
|
0 |
0 |
if $Vi_mode |
|
1864
|
0 |
0 |
if ($point) |
|
1872
|
0 |
0 |
if index($rl_completer_word_break_characters, substr($line, $point, 1)) != -1 and index($rl_special_prefixes, substr($line, $point, 1)) == -1 |
|
1884
|
0 |
0 |
if substr($text, 0, 1) ne '~' |
|
1887
|
0 |
0 |
if (@matches == 0) |
|
1891
|
0 |
0 |
if @matches == 1 and not $rl_completion_suppress_append |
|
1893
|
0 |
0 |
if @matches != 1 |
|
1894
|
0 |
0 |
if ($var_TcshCompleteMode) |
|
1900
|
0 |
0 |
if ($replacement ne '') |
|
1929
|
0 |
0 |
unless $line_rl_mark == $rl_HistoryIndex |
|
1932
|
0 |
0 |
if $D > length $line |
|
1950
|
0 |
0 |
if ($count > 0 and $remainingEntries >= 0) |
|
1951
|
0 |
0 |
if ($remainingEntries > 0) |
|
1953
|
0 |
0 |
if $count > $remainingEntries |
|
1969
|
0 |
0 |
if (&isupper($c)) { } |
|
1989
|
0 |
0 |
if ($key == 63) { } |
|
2021
|
0 |
0 |
unless $KeyMap{'Esc'} |
|
2026
|
0 |
0 |
unless $ord >= $t->[0] and $ord < $t->[0] + length($t->[1]) |
|
2062
|
0 |
0 |
if $DEBUG |
|
2063
|
0 |
0 |
unless %$keymap |
|
2085
|
0 |
0 |
if ($inDOS and length $line == 0) |
|
2086
|
0 |
0 |
if $lastcommand ne 'F_DeleteChar' |
|
2130
|
0 |
0 |
unless $Last_vi_command |
|
2135
|
0 |
0 |
unless ($count == 1) |
|
2142
|
0 |
0 |
unless $n eq '' |
|
2154
|
0 |
0 |
unless defined $new_cursor |
|
2176
|
0 |
0 |
unless $mate_direction |
|
2182
|
0 |
0 |
if not $D and $direction < 0 |
|
2184
|
0 |
0 |
if &at_end_of_line |
|
2186
|
0 |
0 |
if ($c eq $parens) { } |
|
|
0 |
0 |
elsif ($c eq $mate) { } |
|
2194
|
0 |
0 |
if ($lvl) |
|
2230
|
0 |
0 |
unless defined $Last_findchar |
|
2236
|
0 |
0 |
unless defined $Last_findchar |
|
2244
|
0 |
0 |
if $c eq "\cV" |
|
2245
|
0 |
0 |
if $c eq "\e" |
|
2254
|
0 |
0 |
if not $D and $direction < 0 |
|
2256
|
0 |
0 |
if &at_end_of_line |
|
2258
|
0 |
0 |
if substr($line, $D, 1) eq $c |
|
2260
|
0 |
0 |
if ($n) |
|
2274
|
0 |
0 |
if ($c eq "\t") { } |
|
2301
|
0 |
0 |
if $Vi_mode |
|
2334
|
0 |
0 |
unless defined $Vi_undo_state |
|
2349
|
0 |
0 |
unless &do_delete($count, $ord, $Vi_change_patterns) |
|
2365
|
0 |
0 |
if $other_end > length $line |
|
2373
|
0 |
0 |
if $other_end < 0 |
|
2404
|
0 |
0 |
if (&at_end_of_line) |
|
2439
|
0 |
0 |
unless (defined $str) |
|
2441
|
0 |
0 |
if $line eq '' |
|
2446
|
0 |
0 |
if ($str eq '') { } |
|
2447
|
0 |
0 |
unless defined $Vi_search_re |
|
2456
|
0 |
0 |
if @chars and $chars[0] eq '^' |
|
2457
|
0 |
0 |
if @chars and $chars[-1] eq '$' |
|
2468
|
0 |
0 |
if ($in_chclass) { } |
|
2470
|
0 |
0 |
if length $ch > 1 |
|
2472
|
0 |
0 |
if $ch =~ /\]$/ |
|
2475
|
0 |
0 |
$ch =~ /^\w$/ ? : |
|
|
0 |
0 |
length $ch == 2 ? : |
|
2478
|
0 |
0 |
if $ch eq '\\[' |
|
2485
|
0 |
0 |
$c eq '/' ? : |
|
2492
|
0 |
0 |
unless defined $Vi_search_re |
|
2494
|
0 |
0 |
if $c eq 'N' |
|
2501
|
0 |
0 |
if ($line eq '') { } |
|
2540
|
0 |
0 |
if $c eq "\cV" |
|
2541
|
0 |
0 |
if $c eq "\e" |
|
2575
|
0 |
0 |
if $D > $ll |
|
2590
|
0 |
0 |
unless defined $pos |
|
2591
|
0 |
0 |
if ($pos < 0) { } |
|
2596
|
0 |
0 |
$pos > $D ? : |
|
2608
|
0 |
0 |
unless @_ |
|
2664
|
0 |
0 |
if ($Dot_buf) |
|
2665
|
0 |
0 |
if ($line eq '' and $Dot_buf->[0] eq 'i') { } |
|
2680
|
0 |
0 |
unless $in_accept_line |
|
2694
|
0 |
0 |
unless defined $c |
|
2696
|
0 |
0 |
unless $c =~ /^\d$/ |
|
2700
|
0 |
0 |
if $n > $rl_max_numeric_arg |
|
2714
|
0 |
0 |
unless &F_Complete() |
|
2722
|
0 |
0 |
unless ord $ch == $ord |
|
2739
|
0 |
0 |
unless &complete_internal('*') |
|
2757
|
0 |
0 |
unless $line_rl_mark == $rl_HistoryIndex |
|
2771
|
0 |
0 |
if ($^O eq 'os2') { } |
|
|
0 |
0 |
elsif ($^O eq 'MSWin32') { } |
|
2786
|
0 |
0 |
if ($ENV{'RL_PASTE_CMD'}) { } |
|
|
0 |
0 |
elsif (defined $HOME) { } |
|
2788
|
0 |
0 |
unless open $paste_fh, "$ENV{'RL_PASTE_CMD'} |" |
|
2792
|
0 |
0 |
unless open $paste_fh, '<:encoding(utf-8)', $cutpastefile |
|
2795
|
0 |
0 |
if ($mess) |
|
2798
|
0 |
0 |
unless close $paste_fh |
|
2801
|
0 |
0 |
if (defined $in) |
|
2813
|
0 |
0 |
unless @undoGroupS |
|
2815
|
0 |
0 |
unless $#undo > $last + 1 |
|
2830
|
0 |
0 |
if defined $memorizedArg |
|
2850
|
0 |
0 |
unless defined $memorizedPos and $n > 0 |
|
2852
|
0 |
0 |
if $e < $b |
|
2853
|
0 |
0 |
if ($n) { } |
|
2862
|
0 |
0 |
unless defined $memorizedArg |
|
2864
|
0 |
0 |
unless defined $in |
|
2872
|
0 |
0 |
unless defined $memorizedArg |
|
2880
|
0 |
0 |
unless defined $c |
|
2939
|
5 |
9 |
unless defined $num_cols and defined $num_rows |
|
2940
|
9 |
0 |
if defined $num_cols and $num_cols |
|
2943
|
0 |
9 |
if (defined $redraw) |
|
2948
|
0 |
0 |
if $@ and $^W |
|
2954
|
0 |
0 |
if @$rl_term_set >= 6 |
|
2964
|
0 |
0 |
if (not $@ and $Orig ne ',,,') { } |
|
2996
|
0 |
0 |
if not $Term::ReadLine::registered and $Term::ReadLine::toloop and defined &Tk::DoOneEvent |
|
2999
|
0 |
0 |
if ($stdin_not_tty) |
|
3001
|
0 |
0 |
unless defined($line = CORE::readline $term_IN) |
|
3012
|
0 |
0 |
defined $_[0] ? : |
|
3025
|
0 |
0 |
if $rl_scroll_nextline |
|
3028
|
0 |
0 |
if ($dumb_term) |
|
3034
|
0 |
0 |
if ($rl_OperateCount > 0 and !defined($_[1]) || $_[1] eq '') { } |
|
3043
|
0 |
0 |
defined $_[1] ? : |
|
3045
|
0 |
0 |
if $rl_OperateCount > 0 |
|
3058
|
0 |
0 |
$rl_start_default_at_beginning ? : |
|
3072
|
0 |
0 |
unless (eval {
do {
SetTTY()
}
}) |
|
3073
|
0 |
0 |
if $@ |
|
3093
|
0 |
0 |
if ($KeyMap{'name'} eq 'vi_keymap') |
|
3095
|
0 |
0 |
if ($rl_vi_replace_default_on_insert) |
|
3105
|
0 |
0 |
if (not $@ and $Orig ne ',,,') |
|
3132
|
0 |
0 |
if ($rl_default_selected) { } |
|
3140
|
0 |
0 |
if $rl_OperateCount > 0 |
|
3147
|
0 |
0 |
unless (defined $input) |
|
3157
|
0 |
0 |
if ($rl_first_char and $cmd =~ /^F_(SelfInsert$|Yank)/ and length $line and $rl_default_selected) |
|
3162
|
0 |
0 |
if $cmd eq 'F_DeleteChar' |
|
3176
|
0 |
0 |
if $Vi_mode and $line ne '' and &at_end_of_line and $KeyMap{'name'} eq 'vicmd_keymap' |
|
3187
|
0 |
0 |
if defined $ReturnEOF |
|
3193
|
0 |
0 |
if $dumb_term or $stdin_not_tty |
|
3196
|
0 |
0 |
if ($^O eq 'MSWin32') |
|
3206
|
0 |
1 |
if $dumb_term or $stdin_not_tty |
|
3223
|
0 |
0 |
unless defined $from |
|
3224
|
0 |
0 |
unless defined $len |
|
3225
|
0 |
0 |
unless (defined $ket) |
|
3230
|
0 |
0 |
if $len < length($p) + length($s) - $from |
|
3232
|
0 |
0 |
if ($from >= $lp) { } |
|
3235
|
0 |
0 |
if ($start < length $s) { } |
|
3249
|
0 |
0 |
if length $p |
|
3251
|
0 |
0 |
if $ket |
|
3252
|
0 |
0 |
if (defined $bsel and $bsel != $esel) |
|
3253
|
0 |
0 |
if $bsel > $len |
|
3254
|
0 |
0 |
if $esel > $len |
|
3256
|
0 |
0 |
if (defined $bsel and $bsel != $esel) { } |
|
3263
|
0 |
0 |
if length $pre |
|
3264
|
0 |
0 |
if length $sel |
|
3265
|
0 |
0 |
if length $post |
|
3268
|
0 |
0 |
if length $s |
|
3271
|
0 |
0 |
if (not $lp) { } |
|
|
0 |
0 |
elsif (not length $s) { } |
|
3276
|
0 |
0 |
length $ket ? : |
|
3314
|
0 |
0 |
if (defined pos $line) |
|
3324
|
0 |
0 |
if ($dline =~ /[^\x20-\x7e]/) |
|
3333
|
0 |
0 |
if ($c eq "\t") { } |
|
|
0 |
0 |
elsif ($c =~ tr/\000-\037//) { } |
|
|
0 |
0 |
elsif (ord $c == 127) { } |
|
3347
|
0 |
0 |
if length $c > 1 and $i < $D |
|
3349
|
0 |
0 |
if defined $bsel and length $c > 1 and $i < $bsel |
|
3374
|
0 |
0 |
if ($D == length $prompt and length $prompt < $rl_screen_width - (0 != length $dline)) { } |
|
|
0 |
0 |
elsif ($si >= $D) { } |
|
|
0 |
0 |
elsif ($si + $rl_screen_width <= $D) { } |
|
|
0 |
0 |
elsif (length($dline) - $si < $rl_screen_width - $rl_margin and $si) { } |
|
3379
|
0 |
0 |
if $si > 0 and $si != length $prompt and not &OnSecondByte($si) |
|
3382
|
0 |
0 |
if $si > 0 and $si != length $prompt and not &OnSecondByte($si) |
|
3386
|
0 |
0 |
if $si > 0 and $si != length $prompt and not &OnSecondByte($si) |
|
3390
|
0 |
0 |
if $si != 0 |
|
3393
|
0 |
0 |
if ($si + $thislen < length $dline) |
|
3395
|
0 |
0 |
if &OnSecondByte($si + $thislen - 1) |
|
3407
|
0 |
0 |
if (defined $bsel) |
|
3410
|
0 |
0 |
if $bsel > $esel |
|
3411
|
0 |
0 |
if $bsel < 0 |
|
3412
|
0 |
0 |
if ($have_ket) { } |
|
3413
|
0 |
0 |
if $esel > $thislen - 1 |
|
3415
|
0 |
0 |
if $esel > $thislen |
|
3418
|
0 |
0 |
if ($si >= length $prompt) { } |
|
3419
|
0 |
0 |
$have_bra ? : |
|
3420
|
0 |
0 |
if length $dline |
|
3421
|
0 |
0 |
if defined $bsel and $bsel == 0 |
|
3425
|
0 |
0 |
if $si > 0 |
|
3440
|
0 |
0 |
unless ($force_redraw or defined $bsel) |
|
3445
|
0 |
0 |
if ($lastredisplay eq $dline and $lastpromptlen == length $prompt) |
|
3447
|
0 |
0 |
if ($lastdelta < $delta) { } |
|
|
0 |
0 |
elsif ($lastdelta > $delta) { } |
|
3457
|
0 |
0 |
if ($lastdelta - $delta <= length $out) { } |
|
3470
|
0 |
0 |
if ($thislen > $lastlen and $lastdelta == $lastlen and $delta == $thislen and $lastpromptlen == length $prompt and substr($dline, 0, $lastlen - $lastpromptlen) eq $lastredisplay) |
|
3494
|
0 |
0 |
if $lastlen and $lastlen > $thislen |
|
3497
|
0 |
0 |
if ($back) |
|
3499
|
0 |
0 |
if ($back <= length $out and not defined $bsel) { } |
|
3525
|
0 |
0 |
defined $_[0] ? : |
|
3526
|
0 |
0 |
unless defined $prompt |
|
3531
|
0 |
0 |
$_[0] < $_[1] ? : |
|
3535
|
0 |
0 |
@Pending ? : |
|
3538
|
0 |
0 |
if $Dot_buf |
|
3558
|
0 |
0 |
defined $KeyMap[$key] ? : |
|
3559
|
0 |
0 |
if (not defined $cmd or $cmd eq '') |
|
3607
|
0 |
0 |
if $Vi_mode |
|
3608
|
0 |
0 |
unless @undo |
|
3611
|
0 |
0 |
if ($last->[4] eq $line) |
|
3615
|
0 |
0 |
if $undo[-1][5] |
|
3622
|
0 |
0 |
if ($rl_first_char and length $line and $rl_default_selected) |
|
3627
|
0 |
0 |
if ($rl_delete_selection and defined pos $line and $D != pos $line) |
|
3634
|
0 |
0 |
$_[0] > $_[1] ? : |
|
3635
|
0 |
0 |
if ord $_[0] >= 65 |
|
3636
|
0 |
0 |
if ord $_[0] >= 97 |
|
3649
|
3 |
33 |
if not $_rl_japanese_mb or $_[0] == 0 or $_[0] == length $line |
|
3651
|
0 |
33 |
if $_[0] > length $line |
|
3659
|
318 |
8 |
if ord substr($line, $i, 1) < 128 |
|
3663
|
4 |
4 |
if ++$i == $_[0] |
|
3689
|
17 |
210 |
if $_rl_japanese_mb and ord substr($line, $index, 1) >= 128 and ord substr($line, $index + 1, 1) >= 128 |
|
3698
|
0 |
0 |
unless &ioctl($term_IN, $TCGETS, $base_termios) |
|
3712
|
0 |
0 |
if ($DEBUG) |
|
3719
|
0 |
0 |
unless defined $base_termios |
|
3732
|
0 |
0 |
unless &ioctl($term_IN, $TCSETS, $termios) |
|
3734
|
0 |
0 |
if ($DEBUG) |
|
3742
|
0 |
0 |
if $stdin_not_tty or $dumb_term or not $initialized |
|
3744
|
0 |
0 |
unless defined $base_termios |
|
3750
|
0 |
0 |
if ($DEBUG) |
|
3763
|
0 |
0 |
unless &ioctl($term_IN, $TCSETS, $termios) |
|
3765
|
0 |
0 |
if ($DEBUG) |
|
3802
|
0 |
0 |
if ($save) |
|
3803
|
0 |
0 |
unless $LastCommandKilledText |
|
3804
|
0 |
0 |
if ($from < $LastCommandKilledText - 1) { } |
|
3814
|
0 |
0 |
if ($D > $from) |
|
3816
|
0 |
0 |
if $D < $from |
|
3850
|
0 |
6 |
if ($_[0] < 0) |
|
3861
|
15 |
30 |
if ($op eq 'up') { } |
|
|
15 |
15 |
elsif ($op eq 'down') { } |
|
3866
|
6 |
9 |
if ($state == 1) { } |
|
3872
|
8 |
7 |
unless $c =~ tr/A-Za-z// |
|
3878
|
0 |
6 |
if defined $olddot |
|
3896
|
0 |
0 |
if $i < 0 or $i > $#rl_History |
|
3898
|
0 |
0 |
if rindex($rl_History[$i], $str) >= 0 |
|
3899
|
0 |
0 |
if ($reverse) { } |
|
3900
|
0 |
0 |
if $i-- == 0 |
|
3902
|
0 |
0 |
if $i++ == $#rl_History |
|
3921
|
0 |
0 |
if ($I != -1) |
|
3925
|
0 |
0 |
$reverse ? : |
|
3928
|
0 |
0 |
if (($KeyMap[ord $c] || 0) eq 'F_ReverseSearchHistory') { } |
|
|
0 |
0 |
elsif (($KeyMap[ord $c] || 0) eq 'F_ForwardSearchHistory') { } |
|
|
0 |
0 |
elsif ($c eq "\a") { } |
|
|
0 |
0 |
elsif (ord $c < 32 or ord $c > 126) { } |
|
3929
|
0 |
0 |
if ($reverse and $I != -1) |
|
3930
|
0 |
0 |
if ($tmp = &search($I - 1, $searchstr), $tmp >= 0) { } |
|
3938
|
0 |
0 |
if (not $reverse and $I != -1) |
|
3939
|
0 |
0 |
if ($tmp = &search($I + 1, $searchstr), $tmp >= 0) { } |
|
3951
|
0 |
0 |
if $c ne "\e" |
|
3952
|
0 |
0 |
if ($I < 0) { } |
|
3966
|
0 |
0 |
$I < 0 ? : |
|
3967
|
0 |
0 |
if ($tmp == -1) { } |
|
3993
|
0 |
0 |
$reverse ? : |
|
3994
|
0 |
0 |
if $i < 0 or $i > $#rl_History |
|
3996
|
0 |
0 |
if index($rl_History[$i], $str) == 0 |
|
3997
|
0 |
0 |
if ($reverse) { } |
|
3998
|
0 |
0 |
if $i-- == 0 |
|
4000
|
0 |
0 |
if $i++ == $#rl_History |
|
4009
|
0 |
0 |
if $i == -1 |
|
4029
|
0 |
0 |
if ($InsertMode) { } |
|
4066
|
0 |
0 |
if $Vi_mode |
|
4068
|
0 |
0 |
if ($point) |
|
4076
|
0 |
0 |
if index($rl_completer_word_break_characters, substr($line, $point, 1)) != -1 and index($rl_special_prefixes, substr($line, $point, 1)) == -1 |
|
4088
|
0 |
0 |
if (@matches == 0) { } |
|
|
0 |
0 |
elsif ($what_to_do eq "\t") { } |
|
|
0 |
0 |
elsif ($what_to_do eq '?') { } |
|
|
0 |
0 |
elsif ($what_to_do eq '*') { } |
|
4092
|
0 |
0 |
if @matches == 1 and not $rl_completion_suppress_append |
|
4094
|
0 |
0 |
if @matches != 1 |
|
4095
|
0 |
0 |
if ($var_TcshCompleteMode) |
|
4100
|
0 |
0 |
if ($replacement ne '') |
|
4141
|
0 |
0 |
if $start != 0 |
|
4177
|
0 |
0 |
if (@matches) |
|
4181
|
0 |
0 |
if substr($matches[$i], 0, $len) eq $prefix |
|
4183
|
0 |
0 |
if $len == 0 |
|
4200
|
1 |
22 |
if $prefix eq '' or $prefix eq substr($fields[0], 0, length $prefix) |
|
4210
|
0 |
1 |
unless $have_getpwent |
|
4212
|
1 |
0 |
if (scalar @names == 1) { } |
|
4231
|
0 |
0 |
unless @list |
|
4239
|
0 |
0 |
$maxwidth >= $rl_screen_width ? : |
|
4254
|
0 |
0 |
if $index <= $#list |
|
4262
|
0 |
0 |
if $count > 1 |
|
4275
|
0 |
0 |
unless $Vi_undo_all_state |
|
4291
|
0 |
0 |
unless defined $other_end |
|
4293
|
0 |
0 |
if ($other_end < 0) { } |
|
4319
|
0 |
0 |
unless defined $ord |
|
4322
|
0 |
0 |
if defined $fullline_ord and $ord == $fullline_ord |
|
4326
|
0 |
0 |
if ($re) { } |
|
4328
|
0 |
0 |
if (lc $c eq 'b') { } |
|
4347
|
0 |
0 |
unless substr($line, $D) =~ /^($re)/ |
|
4355
|
0 |
0 |
unless substr($line, 0, $D) =~ /($re)$/ |
|
4362
|
0 |
0 |
if $n < 0 or $n > @rl_History |
|
4363
|
0 |
0 |
if $n == $rl_HistoryIndex |
|
4366
|
0 |
0 |
if $rl_HistoryIndex == @rl_History |
|
4369
|
0 |
0 |
$n == @rl_History ? : |
|
4370
|
0 |
0 |
$Vi_mode ? : |
|
4373
|
0 |
0 |
if $Vi_mode |
|
4387
|
0 |
0 |
if $i < 0 or $i > $#rl_History |
|
4389
|
0 |
0 |
if $rl_History[$i] =~ /$Vi_search_re/ |
|
4390
|
0 |
0 |
if ($reverse) { } |
|
4391
|
0 |
0 |
if $i-- == 0 |
|
4393
|
0 |
0 |
if $i++ == $#rl_History |
|
4399
|
0 |
0 |
$reverse ? : |
|
4402
|
0 |
0 |
if $i < 0 |
|
4423
|
0 |
0 |
unless defined $line |
|
4437
|
0 |
0 |
if ($^O eq 'os2') { } |
|
|
0 |
0 |
elsif ($^O eq 'MSWin32') { } |
|
4438
|
0 |
0 |
if eval {
do {
require OS2::Process;
OS2::Process::ClipbrdText_set($in);
1
}
} |
|
4444
|
0 |
0 |
if eval {
do {
require Win32::Clipboard;
Win32::Clipboard::Set($in);
1
}
} |
|
4451
|
0 |
0 |
if ($ENV{'RL_CLCOPY_CMD'}) { } |
|
|
0 |
0 |
elsif (defined $HOME) { } |
|
4453
|
0 |
0 |
unless open COPY, "| $ENV{'RL_CLCOPY_CMD'}" |
|
4457
|
0 |
0 |
unless open COPY, "> $cutpastefile" |
|
4462
|
0 |
0 |
unless close COPY |
|
4479
|
15 |
0 |
unless my $include_depth = shift() |
|
4482
|
14 |
1 |
unless -f $file |
|
4483
|
14 |
1 |
unless open $rc, "< $file" |