Skip to content

Conversation

@marcomayer
Copy link
Contributor

@marcomayer marcomayer commented Jan 29, 2026

When using ]f/[f to navigate commits in single-file history mode, the selected commit wasn't being highlighted. The selection logic required selected_file to be nil, but single-file navigation always sets it. Updated the logic to highlight commits when is_single_file_mode is true, regardless of selected_file.

Closes #214

- Apply highlight to space between +/- stats
- Add padding to fill line width when commit is selected
@esmuellert
Copy link
Owner

Thanks for the fix! I pushed a small addition to also:

  • Apply highlight to the space between +/- stats
  • Add padding to fill the full line width when a commit is selected

This ensures the highlight covers the entire line consistently.

@esmuellert esmuellert enabled auto-merge January 30, 2026 00:48
@esmuellert esmuellert merged commit 0eb87ee into esmuellert:main Jan 30, 2026
13 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.

[bug]: current selection is not shown for a single file history

2 participants