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

refactor(handler): refer to self.config.keybinds internally #400

Merged
merged 1 commit into from
Apr 28, 2021
Merged

refactor(handler): refer to self.config.keybinds internally #400

merged 1 commit into from
Apr 28, 2021

Conversation

yykamei
Copy link
Contributor

@yykamei yykamei commented Apr 28, 2021

I believe this is a trivial change, so I created a PR directly.

Because handle_key can refer to self.config.keybinds by itself, it doesn't have to receive the third argument. Also, this change may slightly improve the performance as it deletes clone().

By the way, I love zellij and started to use it on my laptop.
Thanks,

Because `handle_key` can refer to `self.config.keybinds` by itself, it
doesn't have to receive the third argument. Also, this change may
slightly improve the performance as it deletes `clone()`.
@a-kenji
Copy link
Contributor

a-kenji commented Apr 28, 2021

Thank you very much!
This makes a lot of sense.

@a-kenji a-kenji merged commit 9e71288 into zellij-org:main Apr 28, 2021
@yykamei yykamei deleted the refer-to-keybinds-within-a-function branch April 28, 2021 05:48
a-kenji added a commit that referenced this pull request Apr 28, 2021
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.

2 participants