aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-26 22:15:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-09-26 22:18:19 +0800
commit65b6cd1b3a43024f6c2d9d6f31b8ae3a69dabb56 (patch)
treeefbbe2d84732f85fd8509c5985ed0f7d8b02252c /src/nvim/eval/funcs.c
parentc2fb1fc700db28cb554be9da8e79443b5d3a5fe9 (diff)
downloadrneovim-65b6cd1b3a43024f6c2d9d6f31b8ae3a69dabb56.tar.gz
rneovim-65b6cd1b3a43024f6c2d9d6f31b8ae3a69dabb56.tar.bz2
rneovim-65b6cd1b3a43024f6c2d9d6f31b8ae3a69dabb56.zip
vim-patch:9.1.0742: getcmdprompt() implementation can be improved
Problem: getcmdprompt() implementation can be improved Solution: Improve and simplify it (h-east) closes: vim/vim#15743 https://github.com/vim/vim/commit/25876a6cdd439054d0b3f920ccca0a435481de15 Co-authored-by: h-east <h.east.727@gmail.com>
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 4a96c9a3f3..e8b9288717 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -813,8 +813,6 @@ 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);