add TODOs

This commit is contained in:
Art 2022-12-29 18:54:02 +01:00
parent 2fffb11a69
commit f1602d0fb0
Signed by: prod2
GPG Key ID: F3BB5A97A70A8DDE
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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