Skip to content

Conversation

@andyrewlee
Copy link
Owner

@andyrewlee andyrewlee commented Jan 29, 2026

rowIndexAt() was not checking showKeymapHints when calculating the clickable area, but View() and visibleHeight() did check it. This caused clicks on lower items to fail bounds checks when keymap hints were hidden (the default).

Added regression test and split toolbar tests to separate file to stay under 500-line limit.


Open with Devin

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional flags.

Open in Devin Review

rowIndexAt() was not checking showKeymapHints when calculating the
clickable area, but View() and visibleHeight() did check it. This caused
clicks on lower items to fail bounds checks when keymap hints were hidden
(the default).

Added helpLineCount() helper function (matching sidebar pattern) to
encapsulate the showKeymapHints check and prevent this class of bug.
Refactored rowIndexAt(), View(), and visibleHeight() to use it.

Added regression test and split toolbar tests to separate file to stay
under 500-line limit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@andyrewlee andyrewlee merged commit c2de7bc into main Jan 29, 2026
1 check passed
@andyrewlee andyrewlee deleted the project-click branch January 29, 2026 10:23
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