mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
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>
This commit is contained in:
@@ -68,7 +68,7 @@ Configure the sanitizer(s) via these environment variables:
|
||||
export ASAN_OPTIONS="detect_leaks=0:log_path=$HOME/logs/asan"
|
||||
# Show backtraces in the logs.
|
||||
export UBSAN_OPTIONS=print_stacktrace=1
|
||||
export MSAN_OPTIONS="log_path=${HOME}/logs/tsan"
|
||||
export MSAN_OPTIONS="log_path=${HOME}/logs/msan"
|
||||
export TSAN_OPTIONS="log_path=${HOME}/logs/tsan"
|
||||
|
||||
Logs will be written to `${HOME}/logs/*san.PID` then.
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -5852,7 +5852,7 @@ HistoryType get_histtype(const char *const name, const size_t len, const bool re
|
||||
static int last_maptick = -1; // last seen maptick
|
||||
|
||||
/// Add the given string to the given history. If the string is already in the
|
||||
/// history then it is moved to the front. "histype" may be one of he HIST_
|
||||
/// history then it is moved to the front. "histype" may be one of the HIST_
|
||||
/// values.
|
||||
///
|
||||
/// @parma in_map consider maptick when inside a mapping
|
||||
|
@@ -446,7 +446,7 @@ const char *const highlight_init_cmdline[] = {
|
||||
|
||||
"default link NvimInvalidSpacing ErrorMsg",
|
||||
|
||||
// Not actually invalid, but we highlight user that he is doing something
|
||||
// Not actually invalid, but we show the user that they are doing something
|
||||
// wrong.
|
||||
"default link NvimDoubleQuotedUnknownEscape NvimInvalidValue",
|
||||
NULL,
|
||||
|
@@ -3944,10 +3944,8 @@ static void ml_updatechunk(buf_T *buf, linenr_T line, long len, int updtype)
|
||||
} else if (buf->b_ml.ml_chunksize[curix].mlcs_numlines >= MLCS_MINL
|
||||
&& curix == buf->b_ml.ml_usedchunks - 1
|
||||
&& buf->b_ml.ml_line_count - line <= 1) {
|
||||
/*
|
||||
* We are in the last chunk and it is cheap to crate a new one
|
||||
* after this. Do it now to avoid the loop above later on
|
||||
*/
|
||||
// We are in the last chunk and it is cheap to create a new one
|
||||
// after this. Do it now to avoid the loop above later on
|
||||
curchnk = buf->b_ml.ml_chunksize + curix + 1;
|
||||
buf->b_ml.ml_usedchunks++;
|
||||
if (line == buf->b_ml.ml_line_count) {
|
||||
|
@@ -4533,7 +4533,7 @@ static void nv_scroll(cmdarg_T *cap)
|
||||
validate_botline(curwin); // make sure w_empty_rows is valid
|
||||
half = (curwin->w_height_inner - curwin->w_empty_rows + 1) / 2;
|
||||
for (n = 0; curwin->w_topline + n < curbuf->b_ml.ml_line_count; n++) {
|
||||
// Count half he number of filler lines to be "below this
|
||||
// Count half the number of filler lines to be "below this
|
||||
// line" and half to be "above the next line".
|
||||
if (n > 0 && used + win_get_fill(curwin, curwin->w_topline + n) / 2 >= half) {
|
||||
n--;
|
||||
|
@@ -4840,7 +4840,7 @@ static int get_corner_sep_connector(win_T *wp, WindowCorner corner)
|
||||
}
|
||||
}
|
||||
|
||||
/// Draw seperator connecting characters on the corners of window "wp"
|
||||
/// Draw separator connecting characters on the corners of window "wp"
|
||||
static void draw_sep_connectors_win(win_T *wp)
|
||||
{
|
||||
// Don't draw separator connectors unless global statusline is enabled and the window has
|
||||
|
@@ -27,7 +27,7 @@ typedef enum {
|
||||
WC_BOTTOM_RIGHT
|
||||
} WindowCorner;
|
||||
|
||||
/// By default, all widows are draw on a single rectangular grid, represented by
|
||||
/// By default, all windows are drawn on a single rectangular grid, represented by
|
||||
/// this ScreenGrid instance. In multigrid mode each window will have its own
|
||||
/// grid, then this is only used for global screen elements that hasn't been
|
||||
/// externalized.
|
||||
|
@@ -770,7 +770,7 @@ func Test_breakindent20_list()
|
||||
\ "shall make no law ",
|
||||
\ ]
|
||||
call s:compare_lines(expect, lines)
|
||||
" set mininum indent
|
||||
" set minimum indent
|
||||
setl briopt=min:5
|
||||
redraw!
|
||||
let lines = s:screen_lines2(1, 6, 20)
|
||||
|
@@ -1127,7 +1127,7 @@ func Test_cmdwin_tabpage()
|
||||
tabedit
|
||||
" v8.2.1919 isn't ported yet, so E492 is thrown after E11 here.
|
||||
" v8.2.1183 also isn't ported yet, so we also can't assert E11 directly.
|
||||
" For now, assert E11 and E492 seperately. When v8.2.1183 is ported, the
|
||||
" For now, assert E11 and E492 separately. When v8.2.1183 is ported, the
|
||||
" assert for E492 will fail and this workaround should be removed.
|
||||
" call assert_fails("silent norm q/g :I\<Esc>", 'E11:')
|
||||
call assert_fails("silent norm q/g ", 'E11:')
|
||||
|
@@ -976,7 +976,7 @@ func Test_debug_backtrace_level()
|
||||
\ 'line 1: let s:file1_var = ''file1'''
|
||||
\ ])
|
||||
|
||||
" step throught the initial declarations
|
||||
" step through the initial declarations
|
||||
call RunDbgCmd(buf, 'step', [ 'line 2: let g:global_var = ''global''' ] )
|
||||
call RunDbgCmd(buf, 'step', [ 'line 4: func s:File1Func( arg )' ] )
|
||||
call RunDbgCmd(buf, 'echo s:file1_var', [ 'file1' ] )
|
||||
|
@@ -285,7 +285,7 @@ endfunc
|
||||
" 1
|
||||
" 1
|
||||
" 1
|
||||
" Expexted:
|
||||
" Expected:
|
||||
" 1) g Ctrl-A on block selected indented lines
|
||||
" 2
|
||||
" 1
|
||||
|
@@ -5049,7 +5049,7 @@ func Test_quickfix_window_fails_to_open()
|
||||
call delete('XquickfixFails')
|
||||
endfunc
|
||||
|
||||
" Test for updating the quickfix buffer whenever the assocaited quickfix list
|
||||
" Test for updating the quickfix buffer whenever the associated quickfix list
|
||||
" is changed.
|
||||
func Xqfbuf_update(cchar)
|
||||
call s:setup_commands(a:cchar)
|
||||
|
@@ -686,7 +686,7 @@ func Test_matchstr_with_ze()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" Check a pattern with a look beind crossing a line boundary
|
||||
" Check a pattern with a look behind crossing a line boundary
|
||||
func Test_lookbehind_across_line()
|
||||
new
|
||||
call append(0, ['Behind:', 'asdfasd<yyy', 'xxstart1', 'asdfasd<yy',
|
||||
|
@@ -1356,7 +1356,7 @@ func Test_sort_cmd()
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Needs atleast two lines for this test
|
||||
" Needs at least two lines for this test
|
||||
call setline(1, ['line1', 'line2'])
|
||||
call assert_fails('sort no', 'E474:')
|
||||
call assert_fails('sort c', 'E475:')
|
||||
|
Reference in New Issue
Block a user