Skip to content

Commit

Permalink
Use constants for border indices
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Oct 16, 2024
1 parent a3d7b12 commit c828215
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/scrollview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2067,12 +2067,10 @@ local read_input_stream = function()
if is_float then
local border = config.border
if border ~= nil and islist(border) and #border == 8 then
if border[2] ~= '' then
-- There is a top border.
if border[BORDER_TOP] ~= '' then
mouse_row = mouse_row - 1
end
if border[8] ~= '' then
-- There is a left border.
if border[BORDER_LEFT] ~= '' then
mouse_col = mouse_col - 1
end
end
Expand Down

0 comments on commit c828215

Please sign in to comment.