Merge pull request #330 from lite-xl/lineguide-config
remove unecessary string.rep in lineguide
This commit is contained in:
commit
298ec8a1e9
|
@ -6,8 +6,7 @@ local DocView = require "core.docview"
|
||||||
local draw_overlay = DocView.draw_overlay
|
local draw_overlay = DocView.draw_overlay
|
||||||
|
|
||||||
function DocView:draw_overlay(...)
|
function DocView:draw_overlay(...)
|
||||||
local ns = ("n"):rep(config.line_limit)
|
local offset = self:get_font():get_width("n") * config.line_limit
|
||||||
local offset = self:get_font():get_width(ns)
|
|
||||||
local x = self:get_line_screen_position(1) + offset
|
local x = self:get_line_screen_position(1) + offset
|
||||||
local y = self.position.y
|
local y = self.position.y
|
||||||
local w = math.ceil(SCALE * 1)
|
local w = math.ceil(SCALE * 1)
|
||||||
|
|
Loading…
Reference in New Issue