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

オープン
#21,365 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 13 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
vim
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Vim Script
スター
41.4k
フォーク
6.2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vim/vim のほかの issue

vim/vim の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。