Skip to content

[Bug] Fix use of wrong function#15

Open
jadonwb wants to merge 1 commit intoserhez:mainfrom
jadonwb:main
Open

[Bug] Fix use of wrong function#15
jadonwb wants to merge 1 commit intoserhez:mainfrom
jadonwb:main

Conversation

@jadonwb
Copy link
Copy Markdown
Contributor

@jadonwb jadonwb commented Feb 3, 2026

Due to the change from #14 in init.lua:

-            require("bento.ui").refresh_menu()
+            require("bento.ui").render_expanded()

I get the error "attempt to reference nil value", as render_expanded() is a local function for ui.lua.

Changing this back to refresh_menu() fixes the issue.

@waldnzwrld
Copy link
Copy Markdown
Contributor

waldnzwrld commented Feb 26, 2026

I agree with this, and it's absolutely my fault. For some reason my configuration was not erroring while testing, likely due to a missed sourcing or reload. Apologies. @serhez can we merge this?

@nikmcphail
Copy link
Copy Markdown

Would love for this to get merged, just discovered this plugin and its great but getting an error every buffer close is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants