Merge pull request #330 from lite-xl/lineguide-config

remove unecessary string.rep in lineguide
This commit is contained in:
Guldoman 2021-11-17 05:08:14 +01:00 committed by GitHub
commit 298ec8a1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -6,8 +6,7 @@ local DocView = require "core.docview"
local draw_overlay = DocView.draw_overlay
function DocView:draw_overlay(...)
local ns = ("n"):rep(config.line_limit)
local offset = self:get_font():get_width(ns)
local offset = self:get_font():get_width("n") * config.line_limit
local x = self:get_line_screen_position(1) + offset
local y = self.position.y
local w = math.ceil(SCALE * 1)