mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #144] [MERGED] Fix undefined cursorPosition getter in InputRenderable class #321
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/144
Author: @Copilot
Created: 9/7/2025
Status: ✅ Merged
Merged: 9/7/2025
Merged by: @thdxr
Base:
main← Head:copilot/fix-143📝 Commits (3)
2990c27Initial plan252fc77Add missing cursorPosition getter to InputRenderable classeea77f3Remove Input.test.ts file as requested📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
packages/core/src/renderables/Input.ts(+4 -0)📄 Description
The
InputRenderableclass was missing a getter for thecursorPositionproperty, causing readinginput.cursorPositionto returnundefinedwhile setting worked correctly.Problem
Root Cause
The class had a public setter but no corresponding getter:
Solution
Added the missing getter that returns the private
_cursorPositionfield:This follows the same pattern as the existing
valuegetter in the same class and maintains consistency with the codebase.Fixes #143.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.