Skip to content

Commit

Permalink
fix: Fixed a bug causing callbacks to not work on some functions
Browse files Browse the repository at this point in the history
Closes #104
  • Loading branch information
OXY2DEV committed Aug 13, 2024
1 parent 913fe64 commit a8e104b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/markview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ markview.commands = {

for _, buf in ipairs(markview.attached_buffers) do
local parsed_content = markview.parser.init(buf);
local windows = utils.find_attached_wins(buffer);
local windows = utils.find_attached_wins(buf);

if markview.configuration.callbacks and markview.configuration.callbacks.on_enable then
for _, window in ipairs(windows) do
Expand All @@ -1471,7 +1471,7 @@ markview.commands = {
end,
disableAll = function ()
for _, buf in ipairs(markview.attached_buffers) do
local windows = utils.find_attached_wins(buffer);
local windows = utils.find_attached_wins(buf);

if markview.configuration.callbacks and markview.configuration.callbacks.on_disable then
for _, window in ipairs(windows) do
Expand Down

0 comments on commit a8e104b

Please sign in to comment.