aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-29 09:02:32 +0100
committerGitHub <noreply@github.com>2023-10-29 16:02:32 +0800
commit2dc9ceb99c018b15dcf0c443cad46efecccaf94e (patch)
treef1850d042c6628949b52d16e53912dd14683b298 /src/nvim/api
parent0da27e9bdec14acf82731c4d5e0ad7d673697af7 (diff)
downloadrneovim-2dc9ceb99c018b15dcf0c443cad46efecccaf94e.tar.gz
rneovim-2dc9ceb99c018b15dcf0c443cad46efecccaf94e.tar.bz2
rneovim-2dc9ceb99c018b15dcf0c443cad46efecccaf94e.zip
docs: small fixes (#25585)
Co-authored-by: tmummert <doczook@gmx.de> Co-authored-by: parikshit adhikari <parikshitadhikari@gmail.com>
Diffstat (limited to 'src/nvim/api')
-rw-r--r--src/nvim/api/buffer.c4
-rw-r--r--src/nvim/api/win_config.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 86298efe08..2c80f96953 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -359,7 +359,7 @@ void nvim_buf_set_lines(uint64_t channel_id, Buffer buffer, Integer start, Integ
return;
}
- // loaded buffer first if it's not loaded
+ // load buffer first if it's not loaded
if (buf->b_ml.ml_mfp == NULL) {
if (!buf_ensure_loaded(buf)) {
api_set_error(err, kErrorTypeException, "Failed to load buffer");
@@ -541,7 +541,7 @@ void nvim_buf_set_text(uint64_t channel_id, Buffer buffer, Integer start_row, In
return;
}
- // loaded buffer first if it's not loaded
+ // load buffer first if it's not loaded
if (buf->b_ml.ml_mfp == NULL) {
if (!buf_ensure_loaded(buf)) {
api_set_error(err, kErrorTypeException, "Failed to load buffer");
diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c
index 2fd30bc5a5..6f38989c96 100644
--- a/src/nvim/api/win_config.c
+++ b/src/nvim/api/win_config.c
@@ -135,7 +135,7 @@
/// - "solid": Adds padding by a single whitespace cell.
/// - "shadow": A drop shadow effect by blending with the background.
/// - If it is an array, it should have a length of eight or any divisor of
-/// eight. The array will specifify the eight chars building up the border
+/// eight. The array will specify the eight chars building up the border
/// in a clockwise fashion starting with the top-left corner. As an
/// example, the double box style could be specified as
/// [ "╔", "═" ,"╗", "║", "╝", "═", "╚", "║" ].