Fix multiple typos (#13063)

* Fix multiple typos in `src/nvim/api/ui_events.in.h`
* Below spellings are corrected:
  * Definitions
  * Revision
  * Performance

* Typo fix `presense` should be presence

* Typo fix, follwed -> followed

* Typo fix, attemping -> attempting

* Typo fix, duplicate 'the'

* Typo fix, bounaries -> boundaries

* Revert "Typo fix, bounaries -> boundaries"

This reverts commit 24779e55e596f7534585938a7e532830ad2fa83c.

* Revert "Typo fix, duplicate 'the'"

This reverts commit 1d41d74f78736e67821a15edc9c174a2c3024f87.

* Revert "Typo fix, attemping -> attempting"

This reverts commit d8b2860dfcac366af7afae1f09946ed0aee4a34e.
This commit is contained in:
Hansraj Das 2020-10-12 12:58:12 +05:30 committed by GitHub
parent 3dffa2cc42
commit 1709210a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -350,7 +350,7 @@ def IsErrorInSuppressedErrorsList(category, linenum):
category: str, the category of the error. category: str, the category of the error.
linenum: int, the current line number. linenum: int, the current line number.
Returns: Returns:
bool, True iff the error should be suppressed due to presense in bool, True iff the error should be suppressed due to presence in
suppressions file. suppressions file.
""" """
return (category, linenum) in _error_suppressions_2 return (category, linenum) in _error_suppressions_2

View File

@ -1,7 +1,7 @@
#ifndef NVIM_API_UI_EVENTS_IN_H #ifndef NVIM_API_UI_EVENTS_IN_H
#define NVIM_API_UI_EVENTS_IN_H #define NVIM_API_UI_EVENTS_IN_H
// This file is not compiled, just parsed for definitons // This file is not compiled, just parsed for definitions
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# error "don't include this file, include nvim/ui.h" # error "don't include this file, include nvim/ui.h"
#endif #endif
@ -44,7 +44,7 @@ void option_set(String name, Object value)
void stop(void) void stop(void)
FUNC_API_NOEXPORT; FUNC_API_NOEXPORT;
// First revison of the grid protocol, used by default // First revision of the grid protocol, used by default
void update_fg(Integer fg) void update_fg(Integer fg)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY; FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void update_bg(Integer bg) void update_bg(Integer bg)
@ -68,7 +68,7 @@ void set_scroll_region(Integer top, Integer bot, Integer left, Integer right)
void scroll(Integer count) void scroll(Integer count)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY; FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
// Second revison of the grid protocol, used with ext_linegrid ui option // Second revision of the grid protocol, used with ext_linegrid ui option
void default_colors_set(Integer rgb_fg, Integer rgb_bg, Integer rgb_sp, void default_colors_set(Integer rgb_fg, Integer rgb_bg, Integer rgb_sp,
Integer cterm_fg, Integer cterm_bg) Integer cterm_fg, Integer cterm_bg)
FUNC_API_SINCE(4) FUNC_API_REMOTE_IMPL; FUNC_API_SINCE(4) FUNC_API_REMOTE_IMPL;
@ -91,7 +91,7 @@ void grid_scroll(Integer grid, Integer top, Integer bot,
void grid_destroy(Integer grid) void grid_destroy(Integer grid)
FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY; FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY;
// For perfomance and simplicity, we use the dense screen representation // For performance and simplicity, we use the dense screen representation
// in internal code, such as compositor and TUI. The remote_ui module will // in internal code, such as compositor and TUI. The remote_ui module will
// translate this in to the public grid_line format. // translate this in to the public grid_line format.
void raw_line(Integer grid, Integer row, Integer startcol, void raw_line(Integer grid, Integer row, Integer startcol,

View File

@ -69,7 +69,7 @@ void vim_str2nr(const char_u *const start, int *const prep, int *const len,
&& !STRING_ENDED(ptr + 1) && !STRING_ENDED(ptr + 1)
&& ptr[0] == '0' && ptr[1] != '8' && ptr[1] != '9') { && ptr[0] == '0' && ptr[1] != '8' && ptr[1] != '9') {
pre = ptr[1]; pre = ptr[1];
// Detect hexadecimal: 0x or 0X follwed by hex digit // Detect hexadecimal: 0x or 0X followed by hex digit
if ((what & STR2NR_HEX) if ((what & STR2NR_HEX)
&& !STRING_ENDED(ptr + 2) && !STRING_ENDED(ptr + 2)
&& (pre == 'X' || pre == 'x') && (pre == 'X' || pre == 'x')
@ -77,7 +77,7 @@ void vim_str2nr(const char_u *const start, int *const prep, int *const len,
ptr += 2; ptr += 2;
goto vim_str2nr_hex; goto vim_str2nr_hex;
} }
// Detect binary: 0b or 0B follwed by 0 or 1 // Detect binary: 0b or 0B followed by 0 or 1
if ((what & STR2NR_BIN) if ((what & STR2NR_BIN)
&& !STRING_ENDED(ptr + 2) && !STRING_ENDED(ptr + 2)
&& (pre == 'B' || pre == 'b') && (pre == 'B' || pre == 'b')