about summary refs log tree commit diff stats
path: root/source_text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-14 22:41:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-14 22:41:22 -0700
commit6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8 (patch)
tree4574533c2834095be4f28f807de37f11c512bad8 /source_text.lua
parentb70fa64d1b950f174979cdc33fca0d3eaad52d91 (diff)
parent1a88b4a2907a78fd4a1febf32c74d0305aff6ba0 (diff)
downloadview.love-6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8.tar.gz
Merge text.love
Diffstat (limited to 'source_text.lua')
-rw-r--r--source_text.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/source_text.lua b/source_text.lua
index 5bc8942..68b560e 100644
--- a/source_text.lua
+++ b/source_text.lua
@@ -12,6 +12,8 @@ function Text.draw(State, line_index, y, startpos, hide_cursor)
   local final_screen_line_starting_pos = startpos  -- track value to return
   Text.populate_screen_line_starting_pos(State, line_index)
   Text.populate_link_offsets(State, line_index)
+  App.color(Line_number_color)
+  love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)
   initialize_color()
   assert(#line_cache.screen_line_starting_pos >= 1)
   for i=1,#line_cache.screen_line_starting_pos do