Mercurial > vim
comparison src/main.c @ 14854:3b72808fbb0d v8.1.0439
patch 8.1.0439: recursive use of getcmdline() still not protected
commit https://github.com/vim/vim/commit/438d176e35c16d56ff3bb7a80300197ce5a30c4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 30 17:11:48 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Sep 2018 17:15:08 +0200 |
parents | f562b9fbd0d3 |
children | 27b9a84395b5 |
comparison
equal
deleted
inserted
replaced
14853:5889d7548ac6 | 14854:3b72808fbb0d |
---|---|
927 * Initialisation shared by main() and some tests. | 927 * Initialisation shared by main() and some tests. |
928 */ | 928 */ |
929 void | 929 void |
930 common_init(mparm_T *paramp) | 930 common_init(mparm_T *paramp) |
931 { | 931 { |
932 cmdline_init(); | |
932 | 933 |
933 #ifdef FEAT_MBYTE | 934 #ifdef FEAT_MBYTE |
934 (void)mb_init(); /* init mb_bytelen_tab[] to ones */ | 935 (void)mb_init(); /* init mb_bytelen_tab[] to ones */ |
935 #endif | 936 #endif |
936 #ifdef FEAT_EVAL | 937 #ifdef FEAT_EVAL |