0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0439: recursive use of getcmdline() still not protected

Problem:    Recursive use of getcmdline() still not protected.
Solution:   Instead of saving the command buffer when making a call which may
            cause recursiveness, save the buffer when actually being called
            recursively.
This commit is contained in:
Bram Moolenaar
2018-09-30 17:11:48 +02:00
parent b434ae2a1f
commit 438d176e35
5 changed files with 63 additions and 97 deletions

View File

@@ -929,6 +929,7 @@ vim_main2(void)
void
common_init(mparm_T *paramp)
{
cmdline_init();
#ifdef FEAT_MBYTE
(void)mb_init(); /* init mb_bytelen_tab[] to ones */