aboutsummaryrefslogtreecommitdiff
path: root/plugins/markers.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-22 14:37:28 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 14:37:28 -0400
commit76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3 (patch)
tree11091b18f989d310fe43996b60e15ff482520c50 /plugins/markers.lua
parent694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b (diff)
downloadlite-xl-plugins-76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3.tar.gz
lite-xl-plugins-76bacb1fe9d0d92bb8c22a6767a98b0589d4bdd3.zip
Fix various plugins for linewrapping
Diffstat (limited to 'plugins/markers.lua')
-rw-r--r--plugins/markers.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/markers.lua b/plugins/markers.lua
index a65eaea..176eff1 100644
--- a/plugins/markers.lua
+++ b/plugins/markers.lua
@@ -1,4 +1,4 @@
--- mod-version:3 --lite-xl 2.1
+-- mod-version:3 --lite-xl 2.1
-- Markers plugin for lite text editor
-- original implementation by Petri Häkkinen
@@ -52,12 +52,12 @@ end
local draw_line_gutter = DocView.draw_line_gutter
-function DocView:draw_line_gutter(idx, x, y, width)
- if cache[self.doc] and cache[self.doc][idx] then
+function DocView:draw_line_gutter(line, x, y, width)
+ if cache[self.doc] and cache[self.doc][line] then
local h = self:get_line_height()
renderer.draw_rect(x, y, style.padding.x * 0.4, h, style.selection)
end
- draw_line_gutter(self, idx, x, y, width)
+ return draw_line_gutter(self, line, x, y, width)
end