Mercurial > vim
comparison src/proto/misc1.pro @ 28397:d1702731786c v8.2.4723
patch 8.2.4723: the ModeChanged autocmd event is inefficient
Commit: https://github.com/vim/vim/commit/2bf52dd065495cbf28e28792f2c2d50d44546d9f
Author: LemonBoy <thatlemon@gmail.com>
Date: Sat Apr 9 18:17:34 2022 +0100
patch 8.2.4723: the ModeChanged autocmd event is inefficient
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes https://github.com/vim/vim/issues/10134) Rename
trigger_modechanged() to may_trigger_modechanged().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Apr 2022 19:30:02 +0200 |
parents | f2392648af3e |
children | 52ef65c0637f |
comparison
equal
deleted
inserted
replaced
28396:cf018ac0499c | 28397:d1702731786c |
---|---|
12 int gchar_cursor(void); | 12 int gchar_cursor(void); |
13 void pchar_cursor(int c); | 13 void pchar_cursor(int c); |
14 char_u *skip_to_option_part(char_u *p); | 14 char_u *skip_to_option_part(char_u *p); |
15 void check_status(buf_T *buf); | 15 void check_status(buf_T *buf); |
16 int ask_yesno(char_u *str, int direct); | 16 int ask_yesno(char_u *str, int direct); |
17 void get_mode(char_u *buf); | |
17 void f_mode(typval_T *argvars, typval_T *rettv); | 18 void f_mode(typval_T *argvars, typval_T *rettv); |
18 void f_state(typval_T *argvars, typval_T *rettv); | 19 void f_state(typval_T *argvars, typval_T *rettv); |
19 int get_keystroke(void); | 20 int get_keystroke(void); |
20 int get_number(int colon, int *mouse_used); | 21 int get_number(int colon, int *mouse_used); |
21 int prompt_for_number(int *mouse_used); | 22 int prompt_for_number(int *mouse_used); |
47 char_u *get_isolated_shell_name(void); | 48 char_u *get_isolated_shell_name(void); |
48 int path_is_url(char_u *p); | 49 int path_is_url(char_u *p); |
49 int path_with_url(char_u *fname); | 50 int path_with_url(char_u *fname); |
50 dict_T *get_v_event(save_v_event_T *sve); | 51 dict_T *get_v_event(save_v_event_T *sve); |
51 void restore_v_event(dict_T *v_event, save_v_event_T *sve); | 52 void restore_v_event(dict_T *v_event, save_v_event_T *sve); |
52 void trigger_modechanged(void); | 53 void may_trigger_modechanged(void); |
53 /* vim: set ft=c : */ | 54 /* vim: set ft=c : */ |