aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-10 01:14:18 -0700
committerGitHub <noreply@github.com>2024-09-10 01:14:18 -0700
commit5d7853f22903a4f42d52f565f6a662c3ef178a8c (patch)
tree9329edaa4dc694186644a5a9e3f405eb365e8ae8 /src/nvim/msgpack_rpc
parentf279d1ae33ee5650bccf7b52f9f29fd192ccea1d (diff)
downloadrneovim-5d7853f22903a4f42d52f565f6a662c3ef178a8c.tar.gz
rneovim-5d7853f22903a4f42d52f565f6a662c3ef178a8c.tar.bz2
rneovim-5d7853f22903a4f42d52f565f6a662c3ef178a8c.zip
refactor(os/input.c): rename os_inchar => input_get #30327
Problem: The name `os_inchar` (from Vim's old `mch_inchar`) is ambiguous: "inchar" sounds like it could be reading or enqueuing (setting) input. Its docstring is also ambiguous. Solution: - Rename `os_inchar` to `input_get`. - Write some mf'ing docstrings. - Add assert() in TRY_READ().
Diffstat (limited to 'src/nvim/msgpack_rpc')
-rw-r--r--src/nvim/msgpack_rpc/channel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/channel.h b/src/nvim/msgpack_rpc/channel.h
index ff73a2fc53..abf1ce7bf6 100644
--- a/src/nvim/msgpack_rpc/channel.h
+++ b/src/nvim/msgpack_rpc/channel.h
@@ -12,7 +12,7 @@
/// HACK: os/input.c drains this queue immediately before blocking for input.
/// Events on this queue are async-safe, but they need the resolved state
-/// of os_inchar(), so they are processed "just-in-time".
+/// of input_get(), so they are processed "just-in-time".
EXTERN MultiQueue *ch_before_blocking_events INIT( = NULL);
#ifdef INCLUDE_GENERATED_DECLARATIONS