Merge pull request #10 from liamg/remove-debug

removed stupid debug code
This commit is contained in:
Liam Galvin 2018-10-21 12:09:52 +01:00 committed by GitHub
commit 5e957656f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -115,7 +115,6 @@ func (buffer *Buffer) ScrollUp(lines uint16) {
if lineIndex >= 0 && lineIndex < uint64(len(buffer.lines)) {
*final = buffer.lines[lineIndex]
} else {
panic("hmm!?")
*final = newLine()
}
}
@ -304,7 +303,7 @@ func (buffer *Buffer) incrementCursorPosition() {
buffer.cursorX++
} else {
panic("bad")
panic("cursor position invalid")
}
}