aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-22 00:07:26 +0800
committerGitHub <noreply@github.com>2023-02-22 00:07:26 +0800
commit344a1ee8e6b7d78120f8393d1babfd285e866334 (patch)
tree0cc3f034533cf038b52f54ded07433b7c86d3cff /src
parentee26b227e15abc263195d4c746d5dba9f0e6dec4 (diff)
downloadrneovim-344a1ee8e6b7d78120f8393d1babfd285e866334.tar.gz
rneovim-344a1ee8e6b7d78120f8393d1babfd285e866334.tar.bz2
rneovim-344a1ee8e6b7d78120f8393d1babfd285e866334.zip
docs: fix typos (#22353)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/extmark.c2
-rw-r--r--src/nvim/api/ui.c2
-rw-r--r--src/nvim/tui/input.c2
-rw-r--r--src/nvim/ui_client.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index 91486abf38..845a4c7dbe 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -445,7 +445,7 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e
/// buffer.
/// - right_gravity : boolean that indicates the direction
/// the extmark will be shifted in when new text is inserted
-/// (true for right, false for left). defaults to true.
+/// (true for right, false for left). Defaults to true.
/// - end_right_gravity : boolean that indicates the direction
/// the extmark end position (if it exists) will be shifted
/// in when new text is inserted (true for right, false
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index 3c3c3008f4..f6dee066dc 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -382,7 +382,7 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, Error *e
});
bool boolval = value.data.boolean;
if (!init && i == kUILinegrid && boolval != ui->ui_ext[i]) {
- // There shouldn't be a reason for an UI to do this ever
+ // There shouldn't be a reason for a UI to do this ever
// so explicitly don't support this.
api_set_error(err, kErrorTypeValidation, "ext_linegrid option cannot be changed");
}
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index 730dc9c27b..73ed7b6096 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -186,7 +186,7 @@ static void tinput_done_event(void **argv)
os_exit(1);
}
-/// Send all pending input to Nvim server.
+/// Send all pending input in key buffer to Nvim server.
static void tinput_flush(TermInput *input)
{
if (input->paste) { // produce exactly one paste event
diff --git a/src/nvim/ui_client.c b/src/nvim/ui_client.c
index 0bd9490368..8262293ec5 100644
--- a/src/nvim/ui_client.c
+++ b/src/nvim/ui_client.c
@@ -153,7 +153,7 @@ UIClientHandler ui_client_get_redraw_handler(const char *name, size_t name_len,
/// Placeholder for _sync_ requests with 'redraw' method name
///
-/// async 'redraw' events, which are expected when nvim acts as an ui client.
+/// async 'redraw' events, which are expected when nvim acts as a ui client.
/// get handled in msgpack_rpc/unpacker.c and directly dispatched to handlers
/// of specific ui events, like ui_client_event_grid_resize and so on.
Object handle_ui_client_redraw(uint64_t channel_id, Array args, Arena *arena, Error *error)