Apparenlty these were issues? What?
This commit is contained in:
parent
a9f5e73044
commit
7a78b780f4
|
@ -341,7 +341,7 @@ function DocView:draw_line_body(line, x, y)
|
||||||
local hcl = config.highlight_current_line
|
local hcl = config.highlight_current_line
|
||||||
if hcl ~= false then
|
if hcl ~= false then
|
||||||
for lidx, line1, col1, line2, col2 in self.doc:get_selections(false) do
|
for lidx, line1, col1, line2, col2 in self.doc:get_selections(false) do
|
||||||
if line1 == idx then
|
if line1 == line then
|
||||||
if hcl == "no_selection" then
|
if hcl == "no_selection" then
|
||||||
if (line1 ~= line2) or (col1 ~= col2) then
|
if (line1 ~= line2) or (col1 ~= col2) then
|
||||||
draw_highlight = false
|
draw_highlight = false
|
||||||
|
@ -387,7 +387,7 @@ function DocView:draw_line_gutter(line, x, y, width)
|
||||||
end
|
end
|
||||||
x = x + style.padding.x
|
x = x + style.padding.x
|
||||||
local lh = self:get_line_height()
|
local lh = self:get_line_height()
|
||||||
common.draw_text(self:get_font(), color, line, "right", x, y + yoffset, width, lh)
|
common.draw_text(self:get_font(), color, line, "right", x, y, width, lh)
|
||||||
return lh
|
return lh
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- mod-version:2 -- lite-xl 2.0
|
-- mod-version:3 -- lite-xl 2.1
|
||||||
local core = require "core"
|
local core = require "core"
|
||||||
local common = require "core.common"
|
local common = require "core.common"
|
||||||
local DocView = require "core.docview"
|
local DocView = require "core.docview"
|
||||||
|
|
Loading…
Reference in New Issue