Skip to content

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

@plbstl

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🏁 Complete

Relationships

None yet

Development

No branches or pull requests

Issue actions