-
-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Macros send random characters #4801
Comments
Could you link to where exactly in the docs you found this? The |
While the tutorial is technically correct and |
Just in an
Is this the proper way of doing it? |
It is, but then it shouldn't have caused any issues. Could you share the whole enum? |
where |
As I suspected, the problem is that you're explicitly assigning a value to one of the enum members that come after If you want |
Thanks for all of your help @vomindoraan! |
I'd like someone to replicate my issue and prove my solution works. Then we can change the docs accordingly.
Problem:
Following the docs to define a macro, I write the following code:
When I go to use
MY_MACRO
, I get "Hello World" and some other character at the end (Multiple tests have given me multiple things, like a+
or:
or|
).Solution:
Now the macro works as intended.
I question whether we need both the
return false;
and thebreak
. I didn't look into and I am not confident in my C skills to make a confident statement about this. But I havereturn false; break;
in my keymap right now and it's working.The text was updated successfully, but these errors were encountered: