Windows 11 24H2: intermittent loss of @+ register contents when assigning @+ from an expression involving @+

Offen
#21,365 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 13 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
vim
Bereich
cli

Rechercherichtung

The issue is in the register handling code, likely in src/register.c or related Vim source files. Start by reproducing the bug on a Windows 11 24H2 system with the provided test function. Examine how the @+ register is assigned and accessed, particularly when an expression involves @+ itself. Look for race conditions or memory management issues specific to Windows. 'Done' is when the test consistently outputs 'abc' on each iteration.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Steps to reproduce
  1. gvim -u NONE -U NONE
  2. Define the function:
    function! Regtest()
    let i = 10
    while i > 0
    let i -= 1
    let @+ = 'abc' | let @+ = @+ | echo i .. @+
    endwhile
    endfunction
  3. Call Regtest()
  4. Alternatively run repeatedly: :let @+ = 'abc' | let @+ = @+ | echo @+
Expected behaviour

Expected, actual on unaffected system:
9abc
8abc
7abc
6abc
5abc
4abc
3abc
2abc
1abc
0abc

Actual on affected system (varies):
9abc
8abc
7
6
5
4
3abc
2abc
1
0abc

Version of Vim

VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Aug 23 2026 22:20:15) MS-Windows 32-bit GUI/console version with OLE support Included patches: 1-1001 Compiled by runneradmin@runnervm6iq3x

Environment

System where issue occurs:
Edition Windows 11 Enterprise
Version 24H2
Installed on 2026-02-06
OS build 26100.9106
Experience Windows Feature Experience Pack 1000.26100.334.0

System where issue does not occur:
Edition Windows Server 2022 Standard
Version 21H2
Installed on 2024-03-21
OS build 20348.5499

Logs and stack traces

Vorherrschende Sprache
Vim Script
Sterne
41.4k
Forks
6.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus vim/vim

Alle Issues in vim/vim

Ähnliche Issues

Weitere Issues zu CLI

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.