Skip to content

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

Closed
CodeEditApp/CodeEditTextView
#39

Description

@plbstl

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

Activity

  1. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton Jun 17, 2024
  2. added this to the v0.2.0 milestone on Jun 17, 2024
  3. moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Projecton Jun 18, 2024
  4. moved this from 🏃‍♂️ In Progress to 👀 In Review in CodeEdit Projecton Jun 18, 2024
  5. moved this from 👀 In Review to 🏁 Complete in CodeEdit Projecton Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions