]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0806: 'showcmd' may show internal command keys v9.2.0806
authorBarrett Ruth <br@barrettruth.com>
Sun, 19 Jul 2026 14:53:55 +0000 (14:53 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Jul 2026 14:53:55 +0000 (14:53 +0000)
commitbd730293dccaa166cd99321be674cb059d498b73
tree7b1318fe31c3da60693211d96af9656991973485
parentdcd5b5fed9cbc4f2c8d3fd0718c12ec74a197914
patch 9.2.0806: 'showcmd' may show internal command keys

Problem:  The `showcmd` statusline item may show internal command keys when a
          `<Cmd>` or `<ScriptCmd>` mapping redraws the statusline, and may
          leave stale text behind when `%S` is rendered directly.
Solution: Do not add these internal mapping dispatch keys to the `showcmd`
          buffer, and keep the clear state in sync when `%S` renders it
          (Barrett Ruth)

closes: #20769

Co-authored-by: zeertzjq <35768171+zeertzjq@users.noreply.github.com>
Signed-off-by: Barrett Ruth <br@barrettruth.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawscreen.c
src/normal.c
src/proto/normal.pro
src/screen.c
src/testdir/test_statusline.vim
src/version.c