#5943·ace

Cursor to end move incorrect position, (internal at end, but not in display) (module name): (short issue description)

Author: remco-pcCreated Apr 20, 2026Updated Jul 29, 2026
Labelsp2bug

Describe the bug

and as i've written this error, it seems fixed somehow (might have been a browser bug)

Expected Behavior

ctrl - end moves the cursor position to the end and also displays the cursor at the end

Current Behavior

it might be this function: editor_ace.gotoLine(editor_ace.getSession().getLength(), editor_ace.getSession().getLine(editor_ace.getSession().getLength()-1).length); misbehaving on a certain document...

Reproduction Steps

fire this to go to the end of todo.md automatically at opening

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

ace-builds-master, edge auto update, win 11, qwerty us based