Skip to content

🐞 Text cursor does not show after the last character in the editor, except if the character is a line break #1755

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

Closed
plbstl opened this issue Jun 13, 2024 · 0 comments · Fixed by CodeEditApp/CodeEditTextView#39
Assignees
Labels
bug Something isn't working source editor
Milestone

Comments

@plbstl
Copy link
Contributor

plbstl commented Jun 13, 2024

Description

Finally narrowed it down to this.

Basically what the title says. See the Screenshots section for visuals.

previous titles
  • Cursor does not show on the last line if the file doesn't have a blank line at the EOF
  • Text cursor does not show in the last line of the editor, if the last line contains text
  • Text cursor doesn't show at the last text position if it is not a return character
  • and some more i can't remmeber

To Reproduce

  1. Open a text file in CodeEdit
    • If the file has blank lines at the end, remove them
  2. Place the text cursor at the last line of the file
    • If the file is empty, just start typing

Expected Behavior

CodeEdit should show the text cursor regardless of its location in the editor.

Version Information

CodeEdit: [e.g. 0.0.x-alpha.y]
macOS: 14.5
Xcode: 15.4

Additional Context

No response

Screenshots

no.cursor.in.last.line.when.no.blank.line.after.mov
whitespaces.too.mov
@plbstl plbstl added the bug Something isn't working label Jun 13, 2024
@thecoolwinter thecoolwinter moved this from 🆕 New to 📋 Todo in CodeEdit Project Jun 17, 2024
@thecoolwinter thecoolwinter added this to the v0.2.0 milestone Jun 17, 2024
@thecoolwinter thecoolwinter self-assigned this Jun 17, 2024
@thecoolwinter thecoolwinter moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Project Jun 18, 2024
@thecoolwinter thecoolwinter moved this from 🏃‍♂️ In Progress to 👀 In Review in CodeEdit Project Jun 18, 2024
@github-project-automation github-project-automation bot moved this from 👀 In Review to 🏁 Complete in CodeEdit Project Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source editor
Projects
Status: 🏁 Complete
Development

Successfully merging a pull request may close this issue.

2 participants