Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressing X Triggers Lua Function #866

Open
fg-charles opened this issue Feb 18, 2024 · 2 comments
Open

Pressing X Triggers Lua Function #866

fg-charles opened this issue Feb 18, 2024 · 2 comments

Comments

@fg-charles
Copy link

fg-charles commented Feb 18, 2024

On a fresh instance of sc-im, after using a lua string function, pressing x triggers the function. This video below shows this happening with the lua function now.lua; a lua file with the single line sc.lsetstr(sc.curcol(), sc.currow(), "hi!"). This also happens when cell in which x is pressed has content, replacing the content with the result of the lua call.

Edit: the lua function is also triggered when inserting a row/column, and deleting a range.

@andmarti1424
Copy link
Owner

Hello. Please share your file. Have you checked the doc? Specifically the section regarding triggers...?

@fg-charles
Copy link
Author

The file only has a single line: sc.lsetstr(sc.curcol(), sc.currow(), "hi!") and is placed in ~/.config/sc-im/lua/. (It is a lua file, I had to use .txt to please GitHub). My scimrc is empty and the bug is reproduced on a fresh sc-im instance.
I have read the section on triggers, but since my scimrc is empty and I'm using a fresh sc-im instance, I'm sure that I'm not using them.

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

No branches or pull requests

2 participants