Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Alt] + [Leftarrow] at EOF breaks cursor position when word wrap is active, potential freeze

Aperta
#778 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Riproduci questo in Edit 1.2.1 su Windows 11 con il ritorno a capo automatico abilitato, una riga mandata a capo e il cursore a EOF; quindi segui la sequenza segnalata di Alt+Leftarrow, tasto freccia, digitazione e blocco. Il lavoro è completato quando Alt+Leftarrow si comporta come Leftarrow a EOF, le posizioni visualizzate e quelle di digitazione rimangono allineate e non si verifica alcun blocco.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

C-bug P-high

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

Lingua principale
Rust
Stelle
14.6k
Fork
735
Merge medio
8h 40m
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/edit

Tutte le issue di microsoft/edit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.