about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-03-17 21:46:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-03-17 21:48:29 -0700
commit8c373fdb60620747c7997819538037df190335c0 (patch)
tree6a1ba443b458c9f10d905acfb5dab2aaa1eda796 /text.lua
parentae429cd78a1f52272d5f51991ebb9b04b542ce01 (diff)
downloadlines.love-8c373fdb60620747c7997819538037df190335c0.tar.gz
get rid of all bifold text
It's just uneconomic to maintain given how little I've used it. I have a
bug right now and no time to port the bugfix to all the complexities of
the B side.

I briefly considered tossing out the entire source editor. But I _have_
been using it to browse logs across sessions. The live editor doesn't
quite cover all my use cases just yet.

We now have duplication in the source editor only for:
* syntax highlighting
* hyperlinking [[WikiWords]]
* ability to hide cursor (when showing file browser or Focus is in log browser)
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/text.lua b/text.lua
index 13ef07d..1267699 100644
--- a/text.lua
+++ b/text.lua
@@ -156,7 +156,6 @@ function Text.text_input(State, t)
   if State.cursor_y > App.screen.height - State.line_height then
     Text.populate_screen_line_starting_pos(State, State.cursor1.line)
     Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right)
---?     print('=>', State.screen_top1.line, State.screen_top1.pos, State.cursor1.line, State.cursor1.pos, State.screen_bottom1.line, State.screen_bottom1.pos)
   end
   record_undo_event(State, {before=before, after=snapshot(State, State.cursor1.line)})
 end