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