aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-28 03:28:48 +0100
committerGitHub <noreply@github.com>2023-12-28 10:28:48 +0800
commit714b075197c02d27d5c05133759ae97bed279b50 (patch)
tree11f8859706d2b77256717abb4d3df6ad130a904a /src
parent46ceefb52be6b014dd27b6adfbca3e1c9dff0c0c (diff)
downloadrneovim-714b075197c02d27d5c05133759ae97bed279b50.tar.gz
rneovim-714b075197c02d27d5c05133759ae97bed279b50.tar.bz2
rneovim-714b075197c02d27d5c05133759ae97bed279b50.zip
docs: small fixes (#26651)
Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: WillLillis <wlillis@umass.edu>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/win_config.c1
-rw-r--r--src/nvim/drawscreen.c2
-rw-r--r--src/nvim/eval/window.c2
-rw-r--r--src/nvim/option_defs.h2
-rw-r--r--src/nvim/popupmenu.c4
5 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c
index be18dba315..64eda43689 100644
--- a/src/nvim/api/win_config.c
+++ b/src/nvim/api/win_config.c
@@ -68,7 +68,6 @@
/// ```lua
/// vim.api.nvim_open_win(0, false,
/// {relative='win', width=12, height=3, bufpos={100,10}})
-/// })
/// ```
///
/// @param buffer Buffer to display, or 0 for current buffer
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c
index 4200ff70bc..9e3f96d2c2 100644
--- a/src/nvim/drawscreen.c
+++ b/src/nvim/drawscreen.c
@@ -1,5 +1,5 @@
// drawscreen.c: Code for updating all the windows on the screen.
-// This is the top level, drawline.c is the middle and grid.c/screen.c the lower level.
+// This is the top level, drawline.c is the middle and grid.c the lower level.
// update_screen() is the function that updates all windows and status lines.
// It is called from the main loop when must_redraw is non-zero. It may be
diff --git a/src/nvim/eval/window.c b/src/nvim/eval/window.c
index 02f214f262..230aec6abc 100644
--- a/src/nvim/eval/window.c
+++ b/src/nvim/eval/window.c
@@ -485,7 +485,7 @@ void f_tabpagewinnr(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
/// Switch to a window for executing user code.
/// Caller must call win_execute_after() later regardless of return value.
///
-/// @return whether switching the window succeded.
+/// @return whether switching the window succeeded.
bool win_execute_before(win_execute_T *args, win_T *wp, tabpage_T *tp)
{
args->wp = wp;
diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h
index c1b9b8d196..f8f01dd993 100644
--- a/src/nvim/option_defs.h
+++ b/src/nvim/option_defs.h
@@ -58,7 +58,7 @@ typedef struct {
int os_flags;
/// Old value of the option.
- /// TODO(famiu): Convert `os_oldval` and `os_newval` to `OptVal` to accomodate multitype options.
+ /// TODO(famiu): Convert `os_oldval` and `os_newval` to `OptVal` to accommodate multitype options.
OptValData os_oldval;
/// New value of the option.
OptValData os_newval;
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
index bb4cad0b54..6cc11c1175 100644
--- a/src/nvim/popupmenu.c
+++ b/src/nvim/popupmenu.c
@@ -659,7 +659,7 @@ void pum_redraw(void)
}
}
-/// create a floting preview window for info
+/// create a floating preview window for info
/// @return NULL when no enough room to show
static win_T *pum_create_float_preview(bool enter)
{
@@ -971,7 +971,7 @@ static bool pum_set_selected(int n, int repeat)
if (curwin->w_p_wrap) {
lnum += plines_win(curwin, lnum, true);
}
- // adjust floting window by actually height and max info text width
+ // adjust floating window by actually height and max info text width
pum_adjust_float_position(curwin, lnum, max_info_width);
}