From 996519c2048fc3feacda0a380712bb91ba691c33 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 23 Dec 2021 12:34:50 -0800 Subject: [PATCH] clean up debug prints --- toot-toot.tlv | 9 --------- 1 file changed, 9 deletions(-) diff --git a/toot-toot.tlv b/toot-toot.tlv index 5ea090d..1b98827 100644 --- a/toot-toot.tlv +++ b/toot-toot.tlv @@ -394,9 +394,7 @@ > local oldcol = 0 > local col = 0 > local newline_before_current_line = 0 - > curses.addstr('^') > while true do - > curses.addstr('|'..i) > if i > max or i == old_idx then > oldcol = col > break @@ -414,7 +412,6 @@ > end > -- find previous newline > i = i-col-1 - >--? curses.addstr('w'..old_idx..'-'..newline_before_current_line) > if old_idx - newline_before_current_line > width then > -- we're in a wrapped line > return old_idx - width @@ -423,9 +420,7 @@ > if s[i] == '\n' then > i = i-1 > end - > curses.addstr('c:'..col) > while true do - > curses.addstr('>'..i) > if i < 1 then > -- current line is at top > break @@ -436,18 +431,14 @@ > i = i-1 > end > -- i is at a newline - > curses.addstr('/'..i) > i = i+1 > -- skip whole screen lines within previous line - > curses.addstr('x'..old_idx..'-'..i) > while newline_before_current_line - i > width do > i = i + width - > curses.addstr('p'..i) > end > -- compute index at same column on previous screen line > col = 0 > while true do - > curses.addstr('>>'..i) > if i > max then > -- next line is at bottom and is too short; position at end of it > return i