mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
vim-patch:9.1.0741: No way to get prompt for input()/confirm()
Problem: No way to get prompt for input()/confirm()
Solution: add getcmdprompt() function (Shougo Matsushita)
(Shougo Matsushita)
closes: vim/vim#15667
6908428560
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
This commit is contained in:
@@ -813,6 +813,8 @@ static void f_confirm(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
const char *message = tv_get_string_chk(&argvars[0]);
|
||||
if (message == NULL) {
|
||||
error = true;
|
||||
} else {
|
||||
set_prompt(message);
|
||||
}
|
||||
if (argvars[1].v_type != VAR_UNKNOWN) {
|
||||
buttons = tv_get_string_buf_chk(&argvars[1], buf);
|
||||
|
Reference in New Issue
Block a user