ex_getln: Replace global with entry in save_ccline

This commit is contained in:
ZyX
2017-07-17 02:33:18 +03:00
parent cb3c71eac9
commit 3a923ad2db
5 changed files with 46 additions and 42 deletions

View File

@@ -11108,13 +11108,10 @@ void get_user_input(const typval_T *const argvars,
stuffReadbuffSpec(defstr);
const int save_ex_normal_busy = ex_normal_busy;
const Callback save_getln_input_callback = getln_input_callback;
ex_normal_busy = 0;
getln_input_callback = input_callback;
rettv->vval.v_string =
getcmdline_prompt(inputsecret_flag ? NUL : '@', (char_u *)p, echo_attr,
xp_type, (char_u *)xp_arg);
getln_input_callback = save_getln_input_callback;
(char_u *)getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
xp_type, xp_arg, input_callback);
ex_normal_busy = save_ex_normal_busy;
callback_free(&input_callback);