From e6d38c7dac2e079d9b0f1621fef193bca858664f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 28 Nov 2023 11:46:20 +0800 Subject: vim-patch:9.0.2133: Cannot detect overstrike mode in Cmdline mode (#26263) Problem: Cannot detect overstrike mode in Cmdline mode Solution: Make mode() return "cr" for overstrike closes: vim/vim#13569 https://github.com/vim/vim/commit/d1c3ef1f47c87d1da056c56564e1985fe6f2931d --- runtime/doc/builtin.txt | 2 ++ runtime/lua/vim/_meta/vimfn.lua | 2 ++ 2 files changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 860372767a..ab127d8c67 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -4850,7 +4850,9 @@ mode([expr]) *mode()* Rvc Virtual Replace mode completion |compl-generic| Rvx Virtual Replace mode |i_CTRL-X| completion c Command-line editing + cr Command-line while in overstrike mode |c_| cv Vim Ex mode |gQ| + cvr Vim Ex while in overstrike mode |c_| r Hit-enter prompt rm The -- more -- prompt r? A |:confirm| query of some sort diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index b443fb5d78..de2896e094 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -5812,7 +5812,9 @@ function vim.fn.mkdir(name, flags, prot) end --- Rvc Virtual Replace mode completion |compl-generic| --- Rvx Virtual Replace mode |i_CTRL-X| completion --- c Command-line editing +--- cr Command-line while in overstrike mode |c_| --- cv Vim Ex mode |gQ| +--- cvr Vim Ex while in overstrike mode |c_| --- r Hit-enter prompt --- rm The -- more -- prompt --- r? A |:confirm| query of some sort -- cgit