Fix wrong comment in getchar.c

Commit: 
https://github.com/vim/vim/commit/b10159bcc22aa1c976234a6b2677f11438bef953
Author: mityu <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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.
  */

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wKL01-007VAo-Nx%40256bit.org.

Raspunde prin e-mail lui