Skip to content

Commit

Permalink
sam: fix crash after r command (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypdn authored Apr 6, 2024
1 parent f15e271 commit f5e2750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sam/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func edit(f *File, cmd rune) {
if cmd == 'e' || cmd == 'I' {
logdelete(f, Posn(0), f.b.nc)
addr.r.p2 = f.b.nc
} else if f.b.nc != 0 || (f.name.s[0] != 0 && Strcmp(&genstr, &f.name) != 0) {
} else if f.b.nc != 0 || (f.name.s != nil && Strcmp(&genstr, &f.name) != 0) {
empty = false
}
var err error
Expand Down

0 comments on commit f5e2750

Please sign in to comment.