fix: disable custom cursor rendering to fix layout issues#25
Closed
fix: disable custom cursor rendering to fix layout issues#25
Conversation
Two issues fixed: 1. Added mouse event handlers to divider element - on_mouse_move to track drag position - on_mouse_up to end drag Previously events were only on parent, but mouse moves off divider during drag 2. Fixed calculate_new_ratios ratio calculation - Was incorrectly assuming ratios sum to 1.0 (visible_ratio_total = 1.0 - hidden) - Actually ratios are [1.0, 2.0, 1.0] summing to 4.0 - Now correctly sums visible ratios for proper width calculation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The custom cursor rendering was causing layout problems, particularly with TUI applications like Claude Code where the cursor appeared in the wrong position (below the status line) and caused the UI to shift. Changes: - Add display_offset, line_offset, viewport_rows to TerminalContentSnapshot - Improve build_lines_from_content to handle non-zero starting line indices - Disable custom cursor rendering (TODO: implement proper cursor following Zed's terminal_element.rs approach) The terminal content from alacritty already handles cursor visualization through cell attributes, so disabling the custom cursor overlay provides a better user experience until proper cursor rendering is implemented. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
Author
|
Superseded by PR #26 which targets develop directly with cursor rendering disabled as a workaround. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
display_offset,line_offset,viewport_rowstoTerminalContentSnapshotbuild_lines_from_contentto handle non-zero starting line indicesTest plan
🤖 Generated with Claude Code