]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
Fix wrong comment in getchar.c
authormityu <mityu.mail@gmail.com>
Mon, 4 May 2026 20:24:07 +0000 (20:24 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 4 May 2026 20:24:07 +0000 (20:24 +0000)
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.mail@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/getchar.c

index 57e407b8996b01e5e5aaaebaa8f38400e7b92517..1fe155dcd9b7fce1838aa3214982078ef231dad3 100644 (file)
@@ -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.
  */