aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-01 15:22:22 +0800
committerGitHub <noreply@github.com>2023-12-01 15:22:22 +0800
commit548f03c66c08d0235d62505e884e8088bfda1804 (patch)
tree2c524d5d4561e600ca38c5072e9ae5df2cbd8672 /src/nvim/ui.c
parent130cb4815a5c6625a938b1e93a7d60d7a38ad8dd (diff)
downloadrneovim-548f03c66c08d0235d62505e884e8088bfda1804.tar.gz
rneovim-548f03c66c08d0235d62505e884e8088bfda1804.tar.bz2
rneovim-548f03c66c08d0235d62505e884e8088bfda1804.zip
refactor: change event_create() to a macro (#26343)
A varargs functions can never be inlined, so a macro is faster.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 07166d229e..b068847e85 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -276,7 +276,7 @@ static void ui_refresh_event(void **argv)
void ui_schedule_refresh(void)
{
- multiqueue_put(resize_events, ui_refresh_event, 0);
+ multiqueue_put(resize_events, ui_refresh_event, NULL);
}
void ui_default_colors_set(void)