removed stupid debug code

This commit is contained in:
Liam Galvin 2018-10-21 12:08:06 +01:00
parent f05b2a8d8f
commit 4f7732282e
1 changed files with 1 additions and 2 deletions

View File

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