mirror of https://github.com/liamg/aminal.git
Merge pull request #10 from liamg/remove-debug
removed stupid debug code
This commit is contained in:
commit
5e957656f5
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue