-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimization: Enable short-circuiting for zoom check in should_tmux_c…
…ontrol This change cuts out the `tmux` CLI invocation when `disable_nav_when_zoomed = false`. This reordering was necessary to enable this workaround because the `and` operator is short-circuiting, and thus it will only evaluate the RHS if the LHS is `true`. Before, the slow function call was the LHS, and so it was being evaluated unconditionally, even when the significantly faster boolean check would have failed.
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters