Skip to content

Commit e967778

Browse files
committed
fix: use provided app instead of global app in scope_manager
1 parent 2e6a5c0 commit e967778

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/grapple/scope_content.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ function ScopeContent:sync(original, parsed) end
7171

7272
---@return grapple.window.entity[] | nil, string? error
7373
function ScopeContent:entities()
74-
local App = require("grapple.app")
75-
local app = App.get()
76-
7774
---@param scope_a grapple.scope
7875
---@param scope_b grapple.scope
7976
local function by_name(scope_a, scope_b)
@@ -94,7 +91,7 @@ function ScopeContent:entities()
9491
---@class grapple.scope_content.entity
9592
local entity = {
9693
scope = scope,
97-
current = scope.name == app.settings.scope,
94+
current = scope.name == self.app.settings.scope,
9895
}
9996

10097
table.insert(entities, entity)

0 commit comments

Comments
 (0)