Reorganising of DocView's draw functions

* Renamed `draw_line_body` => `draw_line_main`
* Renamed `draw_gutter_text` => `draw_line_gutter`
* Added `draw_line_text` for *just* the line text
This commit is contained in:
rxi
2020-04-18 15:27:18 +01:00
parent 7046bfca24
commit 503d5101b5
2 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ function CommandView:draw_line_highlight()
end
function CommandView:draw_gutter_text(idx, x, y)
function CommandView:draw_line_gutter(idx, x, y)
local yoffset = self:get_line_text_y_offset()
local pos = self.position
local color = common.lerp(style.text, style.accent, self.gutter_text_brightness / 100)