Skip to content

Commit

Permalink
Merge pull request #219 from mknos/ed-rcmd
Browse files Browse the repository at this point in the history
ed: edge case for "r file" usage
  • Loading branch information
briandfoy authored Jul 29, 2023
2 parents f22795a + faeefe6 commit eed597c
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 @@ -664,7 +664,7 @@ sub edEdit {

if ($InsertMode) {

if ($adrs[0] == $maxline) {
if ($maxline != 0 && $adrs[0] == $maxline) {
push(@lines,@tmp_lines);
$CurrentLineNum += $tmp_maxline;
} elsif ($adrs[0] == 0) {
Expand Down

0 comments on commit eed597c

Please sign in to comment.