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 layout of options view for non-english languages #4359

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

stefanhaller
Copy link
Collaborator

  • PR Description

The width calculations didn't take multi-byte characters into account, so the options bar was cut off too early for these.

Fixes #4353.

@stefanhaller stefanhaller added the bug Something isn't working label Mar 5, 2025
Copy link

codacy-production bot commented Mar 5, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 6a15a591 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (6a15a59) Report Missing Report Missing Report Missing
Head commit (b316072) 53201 46079 86.61%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4359) 3 3 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@stefanhaller stefanhaller enabled auto-merge March 6, 2025 07:13
The width calculations didn't take multi-byte characters into account.
@stefanhaller stefanhaller force-pushed the fix-layout-of-options-bar branch from 98dbf66 to b316072 Compare March 6, 2025 07:19
@stefanhaller stefanhaller merged commit 26cb406 into master Mar 6, 2025
15 checks passed
@stefanhaller stefanhaller deleted the fix-layout-of-options-bar branch March 6, 2025 07:22
stefanhaller added a commit that referenced this pull request Mar 6, 2025
- **PR Description**

When changing the language in the config file while lazygit is running,
the panel titles and tab titles weren't properly updated. I noticed this
while working on #4359.

Probably not an important feature for users, because they are unlikely
to change the language all the time; but it's still nice if this isn't
broken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants