diff --git a/renderer.nim b/renderer.nim index 09372bc..73db68c 100644 --- a/renderer.nim +++ b/renderer.nim @@ -12,6 +12,7 @@ type Scroll* = ref object x, y: int proc render*(textBuffer: TextBuffer, termBuffer: Buffer, prompt: string, scroll: Scroll) = + # TODO: vertical scroll # we are free to "redraw" everything everytime # since termBuffer double buffers diff --git a/textBuffer.nim b/textBuffer.nim index 93f328d..64721c9 100644 --- a/textBuffer.nim +++ b/textBuffer.nim @@ -97,6 +97,7 @@ proc enter*(buf: TextBuffer) = proc newLine*(buf: TextBuffer) = # inserts a new empty line below the current one # and moves cursor to it + # TODO fix crash inc buf.cursorY buf.content.insert(@[], buf.cursorY) buf.cursorX = 0