[Alt] + [Leftarrow] at EOF breaks cursor position when word wrap is active, potential freeze
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce this in Edit 1.2.1 on Windows 11 with word wrap enabled, a wrapped line, and the cursor at EOF; then follow the reported Alt+Leftarrow, arrow-key, typing, and freeze sequence. Done means Alt+Leftarrow behaves like Leftarrow at EOF, with displayed and typed positions staying aligned and no freeze.
Written by the indexing model from the issue text.
Description
When I edit a document with active word wrap, have at least one wrapped line, move my cursor to the end of the last line (end of file) and press [Alt] + [Leftarrow], the cursor jumps to the next empty line. But if I now type characters, they still appear in the previous line, dissociated from the cursor position. Alternating between [Leftarrow] and [Rightarrow] keys moves the cursor further down and increases the mismatch between displayed cursor and the position where typed characters appear.
When I then move the cursor up with [Uparrow], both the displayed cursor and the position of typed characters move up. Once the latter moves above the first line of the document, Edit freezes. Neither saving nor exiting the program is possible at this point.
[Alt] + [Leftarrow] doesn't have a keybinding and in all other cases just acts like [Leftarrow], which is also my expected behaviour in this case.
I am using Edit on Windows 11, version 1.2.1
- Dominant language
- Rust
- Stars
- 14.6k
- Forks
- 735
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/edit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
todo:ticket
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
taikoxyz/taiko-mono#22168 · 1 comment ·