diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-12-01 15:22:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-01 15:22:22 +0800 |
| commit | 548f03c66c08d0235d62505e884e8088bfda1804 (patch) | |
| tree | 2c524d5d4561e600ca38c5072e9ae5df2cbd8672 /src/nvim/tui | |
| parent | 130cb4815a5c6625a938b1e93a7d60d7a38ad8dd (diff) | |
| download | rneovim-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/tui')
| -rw-r--r-- | src/nvim/tui/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index 1e14f3fee9..c533b288c1 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -742,7 +742,7 @@ static void tinput_read_cb(Stream *stream, RBuffer *buf, size_t count_, void *da TermInput *input = data; if (eof) { - loop_schedule_fast(&main_loop, event_create(tinput_done_event, 0)); + loop_schedule_fast(&main_loop, event_create(tinput_done_event, NULL)); return; } |