aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-04-15 12:35:06 +0200
committerGitHub <noreply@github.com>2022-04-15 12:35:06 +0200
commite63e5d1dbd3dd4711efa0ecf9e844ff308b370a6 (patch)
treea05cf2f0a352b6bf3db38e5c7a57842615cc4a48 /src/nvim/api
parent4503cb6b642e0b1ba8157154af6a220387e607f0 (diff)
downloadrneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.tar.gz
rneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.tar.bz2
rneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.zip
docs: typo fixes (#17859)
Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Diffstat (limited to 'src/nvim/api')
-rw-r--r--src/nvim/api/autocmd.c6
-rw-r--r--src/nvim/api/window.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/api/autocmd.c b/src/nvim/api/autocmd.c
index ccf4ae3d02..a012f3d7fc 100644
--- a/src/nvim/api/autocmd.c
+++ b/src/nvim/api/autocmd.c
@@ -360,10 +360,10 @@ cleanup:
/// pattern = { "*.py", "*.pyi" }
/// </pre>
///
-/// Examples values for event:
+/// Example values for event:
/// <pre>
-/// "BufPreWrite"
-/// {"CursorHold", "BufPreWrite", "BufPostWrite"}
+/// "BufWritePre"
+/// {"CursorHold", "BufWritePre", "BufWritePost"}
/// </pre>
///
/// @param event (string|array) The event or events to register this autocommand
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c
index fd33a82be3..3a3a65f812 100644
--- a/src/nvim/api/window.c
+++ b/src/nvim/api/window.c
@@ -139,8 +139,7 @@ Integer nvim_win_get_height(Window window, Error *err)
return win->w_height;
}
-/// Sets the window height. This will only succeed if the screen is split
-/// horizontally.
+/// Sets the window height.
///
/// @param window Window handle, or 0 for current window
/// @param height Height as a count of rows