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

Fix incorrect pcase pattern. #35

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

tusharhero
Copy link
Contributor

Fix for #34

@wyuenho
Copy link
Owner

wyuenho commented Mar 7, 2024

Do you mind adding a test case for this bug please?

@tusharhero
Copy link
Contributor Author

tusharhero commented Mar 8, 2024

@yantar92 Can you please clarify if this is the right one? Because in you intially asked me to the diff as in this PR, but in the Github issue you did something else.

What we are currently doing:

-    (pcase-let ((`(,_ ,action ,file ,@_) event))
+    (pcase-let ((`(,_ ,action ,file) event))

What you suggested in your comment:

-    (pcase-let ((`(,_ ,action ,file ,@_) event))
+    (pcase-let ((`(,_ ,action ,file,_) event))

Both of them seem to work in my configuration.

@yantar92
Copy link

yantar92 commented Mar 8, 2024 via email

@tusharhero
Copy link
Contributor Author

Hey @wyuenho , I fixed it to be the one suggested by yantar. I have no idea how to make a test case, can you please provide any pointers?

@wyuenho wyuenho merged commit db2f595 into wyuenho:main May 30, 2024
9 checks passed
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