]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1518: getcompletiontype() may crash v9.1.1518
authorzeertzjq <zeertzjq@outlook.com>
Sun, 6 Jul 2025 18:26:56 +0000 (20:26 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 6 Jul 2025 18:26:56 +0000 (20:26 +0200)
commite2c0f81dd014b03a40af6b2c42463b7a0d92f5d6
treeba98cd366b00baf8993e4f79f794cbcfd5cfc977
parentd6a5edd6136438d594c535f1ad6635768640331a
patch 9.1.1518: getcompletiontype() may crash

Problem:  getcompletiontype() crashes when no completion is available
          (after v9.1.1509).
Solution: Don't call set_expand_context() (zeertzjq)

fixes: #17681
closes: #17684

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