aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2024-02-06 12:30:02 +0100
committerGitHub <noreply@github.com>2024-02-06 19:30:02 +0800
commit63b810c9d8543bfcbee0367554e97cb97d1c14e6 (patch)
tree9cc25c042a40422ba133384c1b55dad5201cf253 /src/nvim/os
parent9a761019da05fbdb546f6e81e294612be217ca12 (diff)
downloadrneovim-63b810c9d8543bfcbee0367554e97cb97d1c14e6.tar.gz
rneovim-63b810c9d8543bfcbee0367554e97cb97d1c14e6.tar.bz2
rneovim-63b810c9d8543bfcbee0367554e97cb97d1c14e6.zip
docs: small fixes (#27213)
Co-authored-by: Matthieu Coudron <886074+teto@users.noreply.github.com>
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index abba49f0e8..fab360c9af 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -95,7 +95,7 @@ static void cursorhold_event(void **argv)
static void create_cursorhold_event(bool events_enabled)
{
// If events are enabled and the queue has any items, this function should not
- // have been called(inbuf_poll would return kInputAvail)
+ // have been called (inbuf_poll would return kInputAvail).
// TODO(tarruda): Cursorhold should be implemented as a timer set during the
// `state_check` callback for the states where it can be triggered.
assert(!events_enabled || multiqueue_empty(main_loop.events));
@@ -110,7 +110,7 @@ static void restart_cursorhold_wait(int tb_change_cnt)
/// Low level input function
///
-/// wait until either the input buffer is non-empty or, if `events` is not NULL
+/// Wait until either the input buffer is non-empty or, if `events` is not NULL
/// until `events` is non-empty.
int os_inchar(uint8_t *buf, int maxlen, int ms, int tb_change_cnt, MultiQueue *events)
{
@@ -543,7 +543,7 @@ bool os_input_ready(MultiQueue *events)
{
return (typebuf_was_filled // API call filled typeahead
|| rbuffer_size(input_buffer) // Input buffer filled
- || pending_events(events)); // Events must be processed
+ || pending_events(events)); // Events must be processed
}
// Exit because of an input read error.