Commit: Fix wrong comment in getchar.c

3 views
Skip to first unread message

Christian Brabandt

unread,
May 5, 2026, 3:00:14 PMMay 5
to vim...@googlegroups.com
Fix wrong comment in getchar.c

Commit: https://github.com/vim/vim/commit/b10159bcc22aa1c976234a6b2677f11438bef953
Author: mityu <mityu...@gmail.com>
Date: Mon May 4 20:24:07 2026 +0000

Fix wrong comment in getchar.c

The comment for `do_key_input_pre()` function says that it handles the
InsertCharPre autocommand, but what the function actually handles is the
KeyInputPre autocommand.

closes: #20142

Signed-off-by: mityu <mityu...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/getchar.c b/src/getchar.c
index 57e407b89..1fe155dcd 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2205,7 +2205,7 @@ vgetc(void)

#ifdef FEAT_EVAL
/*
- * Handle the InsertCharPre autocommand.
+ * Handle the KeyInputPre autocommand.
* "c" is the character that was typed.
* Return new input character.
*/
Reply all
Reply to author
Forward
0 new messages