aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-18 14:31:40 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-18 14:35:04 +0800
commit9180c18c462a4945657899b732189da6f2ea2eaf (patch)
tree3593a69df64cbf4496e8739a14d8976dde90a57b /src/nvim/eval
parent2a94dcf0c592464222c87f5606799ca51a0b9c07 (diff)
downloadrneovim-9180c18c462a4945657899b732189da6f2ea2eaf.tar.gz
rneovim-9180c18c462a4945657899b732189da6f2ea2eaf.tar.bz2
rneovim-9180c18c462a4945657899b732189da6f2ea2eaf.zip
vim-patch:9.0.0864: crash when using "!!" without a previous shell command
Problem: Crash when using "!!" without a previous shell command. Solution: Check "prevcmd" is not NULL. (closes vim/vim#11487) https://github.com/vim/vim/commit/6600447c7b0a1be3a64d07a318bacdfaae0cac4b Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index e138c50b6a..63d5f94f11 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -3207,7 +3207,7 @@ static int ex_defer_inner(char *name, char **arg, const partial_T *const partial
}
/// Return true if currently inside a function call.
-/// Give an error message and return FALSE when not.
+/// Give an error message and return false when not.
bool can_add_defer(void)
{
if (get_current_funccal() == NULL) {