Merge pull request #682 from Guldoman/indent_refactor

Refactor how to get the indentation of a `Doc`
This commit is contained in:
Adam
2021-11-27 11:55:36 -05:00
committed by GitHub
5 changed files with 33 additions and 52 deletions
+2 -2
View File
@@ -395,8 +395,8 @@ end
function DocView:draw()
self:draw_background(style.background)
self:get_font():set_tab_size(config.indent_size)
local _, indent_size = self.doc:get_indent_info()
self:get_font():set_tab_size(indent_size)
local minline, maxline = self:get_visible_line_range()
local lh = self:get_line_height()