From: glepnir Date: Wed, 28 May 2025 18:39:34 +0000 (+0200) Subject: patch 9.1.1417: missing info about register completion in complete_info() X-Git-Tag: v9.1.1417^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49864aecd0d23676e202b30bc8705c78ae52d680;p=thirdparty%2Fvim.git patch 9.1.1417: missing info about register completion in complete_info() Problem: missing info about register completion in complete_info() (after v9.1.1408) Solution: update documentation and mention that register is used as source, add a test (glepnir) closes: #17389 Signed-off-by: glepnir Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 717f13a6ff..a15a20aa5c 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2025 May 14 +*builtin.txt* For Vim version 9.1. Last change: 2025 May 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2007,6 +2007,7 @@ complete_info([{what}]) *complete_info()* "omni" Omni completion |i_CTRL-X_CTRL-O| "spell" Spelling suggestions |i_CTRL-X_s| "eval" |complete()| completion + "register" Words from registers |i_CTRL-X_CTRL-R| "unknown" Other internal modes If the optional {what} list argument is supplied, then only diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index 4bb8b40b3c..dfc2189bc4 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -4641,6 +4641,9 @@ func Test_register_completion() call feedkeys("a\\\", 'tx') call assert_equal("zero", getline(1)) + call feedkeys("Sze\\\=string(complete_info(['mode']))\\", "tx") + call assert_equal("zero{'mode': 'register'}", getline(1)) + " Clean up bwipe! delfunc GetItems diff --git a/src/version.c b/src/version.c index 6941380a7d..3885bcbee1 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1417, /**/ 1416, /**/