File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -2544,7 +2544,7 @@ sub _DB__handle_i_command {
2544
2544
next CMD;
2545
2545
}
2546
2546
2547
- =head3 C<cmd_l > - list lines (command)
2547
+ =head3 C<_cmd_l_main > - list lines (command)
2548
2548
2549
2549
Most of the command is taken up with transforming all the different line
2550
2550
specification syntaxes into 'start-stop'. After that is done, the command
@@ -6001,7 +6001,7 @@ sub cmd_O {
6001
6001
=head3 C<cmd_v > - view window (command)
6002
6002
6003
6003
Uses the C<$preview > variable set in the second C<BEGIN > block (q.v.) to
6004
- move back a few lines to list the selected line in context. Uses C<cmd_l >
6004
+ move back a few lines to list the selected line in context. Uses C<_cmd_l_main >
6005
6005
to do the actual listing after figuring out the range of line to request.
6006
6006
6007
6007
=cut
@@ -6027,7 +6027,7 @@ sub cmd_v {
6027
6027
# Back up by the context amount.
6028
6028
$start -= $preview ;
6029
6029
6030
- # Put together a linespec that cmd_l will like.
6030
+ # Put together a linespec that _cmd_l_main will like.
6031
6031
$line = $start . ' -' . ( $start + $incr );
6032
6032
6033
6033
# List the lines.
Original file line number Diff line number Diff line change @@ -3051,6 +3051,25 @@ SKIP:
3051
3051
);
3052
3052
}
3053
3053
3054
+ {
3055
+ # gh #19170
3056
+ my $wrapper = DebugWrap-> new(
3057
+ {
3058
+ cmds =>
3059
+ [
3060
+ ' v' ,
3061
+ ' q' ,
3062
+ ],
3063
+ prog => ' -e1' ,
3064
+ }
3065
+ );
3066
+
3067
+ $wrapper -> contents_like(
3068
+ qr / 1==>\t 1\n / ,
3069
+ q/ v works/ ,
3070
+ );
3071
+ }
3072
+
3054
3073
SKIP:
3055
3074
{
3056
3075
$Config {usethreads }
You can’t perform that action at this time.
0 commit comments