Skip to content

Commit

Permalink
this is better
Browse files Browse the repository at this point in the history
  • Loading branch information
mknos authored Nov 30, 2023
1 parent e189f2d commit 1746b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ed
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ sub edEdit {
push(@lines,@tmp_lines);
$CurrentLineNum = maxline();
} elsif ($adrs[0] == 0) {
splice @lines, 0, 1, undef, @tmp_lines;
splice @lines, 1, 0, @tmp_lines;
$CurrentLineNum = scalar(@tmp_lines);
} else {
splice @lines, $adrs[0] + 1, 0, @tmp_lines;
Expand Down

0 comments on commit 1746b2b

Please sign in to comment.