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