-
Notifications
You must be signed in to change notification settings - Fork 597
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
prompt hooks keep making prompt stopped #3896
Comments
i think i found the source of my problem Line 632 in e6f5c79
i believed there is supposed to be a return statement after this line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output of
awesome --version
:awesome v4.3-1647-ge6f5c7980-dirty (Too long)
• Compiled against Lua 5.4.6 (running with 0.9.2)
• API level: 4
• D-Bus support: yes
• xcb-errors support: no
• execinfo support: yes
• xcb-randr version: 1.6
• LGI version: /usr/share/lua/5.4/lgi/version.lua
• Transparency enabled: yes
• Custom search paths: no
How to reproduce the issue:
I want to make custom prompt widget. i try to make it to have multiple mode and can be switched when type certain prefixes like
:b
to search in browser for example, so i decided to use hooks, so whenever the user type space, it will check if the command start with:<prefix>
it will change into selected mode. In doc, it saysso i try below code, but for some reason every time i press space inside my prompt, the prompt immediately run the command instead of just replacing the command
Actual result:
When pressing space, the command get updated but the prompt immediately exit
Expected result:
When pressing space, the command should be updated and prompt kept running
The text was updated successfully, but these errors were encountered: