diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-14 22:39:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-14 22:39:18 -0700 |
commit | 1a88b4a2907a78fd4a1febf32c74d0305aff6ba0 (patch) | |
tree | 7dc8549d03e95035b446d89acdc17d5981a82b85 /source_text.lua | |
parent | 37cb0304897b038db1705f00c3495751bbfda13a (diff) | |
parent | 1fd30c0462faf598d5ef7b2911379bc19a649253 (diff) | |
download | text.love-1a88b4a2907a78fd4a1febf32c74d0305aff6ba0.tar.gz |
Merge lines.love
Diffstat (limited to 'source_text.lua')
-rw-r--r-- | source_text.lua | 2 |
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 |