summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-30 17:11:48 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-30 17:11:48 +0200
commit438d176e35c16d56ff3bb7a80300197ce5a30c4f (patch)
tree8b98767d59772aa5f4ec3357aa1eae1400db53fe /src/main.c
parentb434ae2a1fcbbd43244c6130451de7f14346e224 (diff)
downloadvim-git-438d176e35c16d56ff3bb7a80300197ce5a30c4f.tar.gz
patch 8.1.0439: recursive use of getcmdline() still not protectedv8.1.0439
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8ee165003..d9cd6f9d0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */