Skip to content

Commit

Permalink
Fix subtle order-of-operations issue with OopChar global
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Apr 26, 2020
1 parent 03e343a commit 451ad76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oop.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ StartParsing:
} else if OopChar == '\x00' {
endOfProgram = true
} else {
textLine = string([]byte{OopChar}) + OopReadLineToEnd(statId, position)
textLine = string([]byte{OopChar})
textLine += OopReadLineToEnd(statId, position)
TextWindowAppend(&textWindow, textLine)
}

Expand Down

0 comments on commit 451ad76

Please sign in to comment.