diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-07-31 09:27:31 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-07-31 09:27:31 -0700 |
commit | b93c0cd6cc8231f80dd1974224a65cdfd205c76f (patch) | |
tree | aeae4be1af5364950a53262a4cd363136526bf3d | |
parent | bb3e12eb5fc70e815411cde7be9ace3a4b78b923 (diff) | |
download | view.love-b93c0cd6cc8231f80dd1974224a65cdfd205c76f.tar.gz |
reorganize some comments
This keeps things consistent with other forks (links, lines-and-links) that are "conceptually upstream" of the source editor.
-rw-r--r-- | source_text.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source_text.lua b/source_text.lua index 23d799d..5bc8942 100644 --- a/source_text.lua +++ b/source_text.lua @@ -24,8 +24,9 @@ function Text.draw(State, line_index, y, startpos, hide_cursor) local screen_line = Text.screen_line(line, line_cache, i) --? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y) local frag_len = utf8.len(screen_line) - -- render any link decorations + -- render any highlights for _,link_offsets in ipairs(line_cache.link_offsets) do + -- render link decorations local s,e,filename = unpack(link_offsets) local lo, hi = Text.clip_wikiword_with_screen_line(line, line_cache, i, s, e) if lo then @@ -39,7 +40,6 @@ function Text.draw(State, line_index, y, startpos, hide_cursor) }) end end - -- render any highlights if State.selection1.line then local lo, hi = Text.clip_selection(State, line_index, pos, pos+frag_len) Text.draw_highlight(State, line, State.left,y, pos, lo,hi) |