]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1872: Cmdline history not updated when mapping <Up> and <CR> v9.1.1872
authorzeertzjq <zeertzjq@outlook.com>
Sun, 26 Oct 2025 13:29:09 +0000 (13:29 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 26 Oct 2025 13:29:09 +0000 (13:29 +0000)
commit97b6e8b4243cc96dbb8716d518976a5ce0515748
tree197c5d7859a8aed736d022649613f03d69bbd2cf
parent4eef8ba498df762040182445e43675d8cddb0290
patch 9.1.1872: Cmdline history not updated when mapping <Up> and <CR>

Problem:  Cmdline history not updated when mapping both <Up> and <CR>.
Solution: Consider the command typed when in Cmdline mode and there is
          no pending input (zeertzjq).

Although the existing behavior technically does match documentation, the
"completely come from mappings" part is a bit ambiguous, because one may
argue that the command doesn't completely come from mappings as long as
the user has typed a key in Cmdline mode.  I'm not entirely sure if this
change will cause problems, but it seems unlikely.

fixes: #2771
related: neovim/neovim#36256
closes: #18607

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/change.txt
runtime/doc/cmdline.txt
src/ex_getln.c
src/testdir/test_cmdline.vim
src/version.c