mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	doc: fix typos [ci skip] #11787
This commit is contained in:
		| @@ -248,7 +248,7 @@ bool encode_vim_list_to_buf(const list_T *const list, size_t *const ret_len, | |||||||
| /// @param[out]  read_bytes  Is set to amount of bytes read. | /// @param[out]  read_bytes  Is set to amount of bytes read. | ||||||
| /// | /// | ||||||
| /// @return OK when reading was finished, FAIL in case of error (i.e. list item | /// @return OK when reading was finished, FAIL in case of error (i.e. list item | ||||||
| ///         was not a string), NOTDONE if reading was successfull, but there are | ///         was not a string), NOTDONE if reading was successful, but there are | ||||||
| ///         more bytes to read. | ///         more bytes to read. | ||||||
| int encode_read_from_list(ListReaderState *const state, char *const buf, | int encode_read_from_list(ListReaderState *const state, char *const buf, | ||||||
|                           const size_t nbuf, size_t *const read_bytes) |                           const size_t nbuf, size_t *const read_bytes) | ||||||
|   | |||||||
| @@ -173,7 +173,7 @@ | |||||||
| /// @def TYPVAL_ENCODE_SPECIAL_DICT_KEY_CHECK | /// @def TYPVAL_ENCODE_SPECIAL_DICT_KEY_CHECK | ||||||
| /// @brief Macros used to check special dictionary key | /// @brief Macros used to check special dictionary key | ||||||
| /// | /// | ||||||
| /// @param  label  Label for goto in case check was not successfull. | /// @param  label  Label for goto in case check was not successful. | ||||||
| /// @param  key  typval_T key to check. | /// @param  key  typval_T key to check. | ||||||
|  |  | ||||||
| /// @def TYPVAL_ENCODE_CONV_DICT_AFTER_KEY | /// @def TYPVAL_ENCODE_CONV_DICT_AFTER_KEY | ||||||
|   | |||||||
| @@ -3040,7 +3040,7 @@ void cmdline_screen_cleared(void) | |||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| /// called by ui_flush, do what redraws neccessary to keep cmdline updated. | /// called by ui_flush, do what redraws necessary to keep cmdline updated. | ||||||
| void cmdline_ui_flush(void) | void cmdline_ui_flush(void) | ||||||
| { | { | ||||||
|   if (!ui_has(kUICmdline)) { |   if (!ui_has(kUICmdline)) { | ||||||
|   | |||||||
| @@ -6587,7 +6587,7 @@ static int autocmd_nested = FALSE; | |||||||
|  |  | ||||||
| /// Execute autocommands for "event" and file name "fname". | /// Execute autocommands for "event" and file name "fname". | ||||||
| /// | /// | ||||||
| /// @param event event that occured | /// @param event event that occurred | ||||||
| /// @param fname filename, NULL or empty means use actual file name | /// @param fname filename, NULL or empty means use actual file name | ||||||
| /// @param fname_io filename to use for <afile> on cmdline | /// @param fname_io filename to use for <afile> on cmdline | ||||||
| /// @param force When true, ignore autocmd_busy | /// @param force When true, ignore autocmd_busy | ||||||
| @@ -6604,7 +6604,7 @@ bool apply_autocmds(event_T event, char_u *fname, char_u *fname_io, bool force, | |||||||
| /// Like apply_autocmds(), but with extra "eap" argument.  This takes care of | /// Like apply_autocmds(), but with extra "eap" argument.  This takes care of | ||||||
| /// setting v:filearg. | /// setting v:filearg. | ||||||
| /// | /// | ||||||
| /// @param event event that occured | /// @param event event that occurred | ||||||
| /// @param fname NULL or empty means use actual file name | /// @param fname NULL or empty means use actual file name | ||||||
| /// @param fname_io fname to use for <afile> on cmdline | /// @param fname_io fname to use for <afile> on cmdline | ||||||
| /// @param force When true, ignore autocmd_busy | /// @param force When true, ignore autocmd_busy | ||||||
| @@ -6624,7 +6624,7 @@ static bool apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, | |||||||
| /// conditional, no autocommands are executed.  If otherwise the autocommands | /// conditional, no autocommands are executed.  If otherwise the autocommands | ||||||
| /// cause the script to be aborted, retval is set to FAIL. | /// cause the script to be aborted, retval is set to FAIL. | ||||||
| /// | /// | ||||||
| /// @param event event that occured | /// @param event event that occurred | ||||||
| /// @param fname NULL or empty means use actual file name | /// @param fname NULL or empty means use actual file name | ||||||
| /// @param fname_io fname to use for <afile> on cmdline | /// @param fname_io fname to use for <afile> on cmdline | ||||||
| /// @param force When true, ignore autocmd_busy | /// @param force When true, ignore autocmd_busy | ||||||
| @@ -6684,7 +6684,7 @@ bool has_event(event_T event) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT | |||||||
|  |  | ||||||
| /// Execute autocommands for "event" and file name "fname". | /// Execute autocommands for "event" and file name "fname". | ||||||
| /// | /// | ||||||
| /// @param event event that occured | /// @param event event that occurred | ||||||
| /// @param fname filename, NULL or empty means use actual file name | /// @param fname filename, NULL or empty means use actual file name | ||||||
| /// @param fname_io filename to use for <afile> on cmdline, | /// @param fname_io filename to use for <afile> on cmdline, | ||||||
| ///                 NULL means use `fname`. | ///                 NULL means use `fname`. | ||||||
| @@ -7197,8 +7197,8 @@ char_u *getnextac(int c, void *cookie, int indent, bool do_concat) | |||||||
| /// To account for buffer-local autocommands, function needs to know | /// To account for buffer-local autocommands, function needs to know | ||||||
| /// in which buffer the file will be opened. | /// in which buffer the file will be opened. | ||||||
| /// | /// | ||||||
| /// @param event event that occured. | /// @param event event that occurred. | ||||||
| /// @param sfname filename the event occured in. | /// @param sfname filename the event occurred in. | ||||||
| /// @param buf buffer the file is open in | /// @param buf buffer the file is open in | ||||||
| bool has_autocmd(event_T event, char_u *sfname, buf_T *buf) | bool has_autocmd(event_T event, char_u *sfname, buf_T *buf) | ||||||
|   FUNC_ATTR_WARN_UNUSED_RESULT |   FUNC_ATTR_WARN_UNUSED_RESULT | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ typedef int16_t sattr_T; | |||||||
| /// chars[] contains the UTF-8 text that is currently displayed on the grid. | /// chars[] contains the UTF-8 text that is currently displayed on the grid. | ||||||
| /// It is stored as a single block of cells. When redrawing a part of the grid, | /// It is stored as a single block of cells. When redrawing a part of the grid, | ||||||
| /// the new state can be compared with the existing state of the grid. This way | /// the new state can be compared with the existing state of the grid. This way | ||||||
| /// we can avoid sending bigger updates than neccessary to the Ul layer. | /// we can avoid sending bigger updates than necessary to the Ul layer. | ||||||
| /// | /// | ||||||
| /// Screen cells are stored as NUL-terminated UTF-8 strings, and a cell can | /// Screen cells are stored as NUL-terminated UTF-8 strings, and a cell can | ||||||
| /// contain up to MAX_MCO composing characters after the base character. | /// contain up to MAX_MCO composing characters after the base character. | ||||||
|   | |||||||
| @@ -177,7 +177,7 @@ typedef enum { | |||||||
|  |  | ||||||
| /// Possible results when reading ShaDa file | /// Possible results when reading ShaDa file | ||||||
| typedef enum { | typedef enum { | ||||||
|   kSDReadStatusSuccess,    ///< Reading was successfull. |   kSDReadStatusSuccess,    ///< Reading was successful. | ||||||
|   kSDReadStatusFinished,   ///< Nothing more to read. |   kSDReadStatusFinished,   ///< Nothing more to read. | ||||||
|   kSDReadStatusReadError,  ///< Failed to read from file. |   kSDReadStatusReadError,  ///< Failed to read from file. | ||||||
|   kSDReadStatusNotShaDa,   ///< Input is most likely not a ShaDa file. |   kSDReadStatusNotShaDa,   ///< Input is most likely not a ShaDa file. | ||||||
| @@ -186,11 +186,11 @@ typedef enum { | |||||||
|  |  | ||||||
| /// Possible results of shada_write function. | /// Possible results of shada_write function. | ||||||
| typedef enum { | typedef enum { | ||||||
|   kSDWriteSuccessfull,   ///< Writing was successfull. |   kSDWriteSuccessfull,   ///< Writing was successful. | ||||||
|   kSDWriteReadNotShada,  ///< Writing was successfull, but when reading it |   kSDWriteReadNotShada,  ///< Writing was successful, but when reading it | ||||||
|                          ///< attempted to read file that did not look like |                          ///< attempted to read file that did not look like | ||||||
|                          ///< a ShaDa file. |                          ///< a ShaDa file. | ||||||
|   kSDWriteFailed,        ///< Writing was not successfull (e.g. because there |   kSDWriteFailed,        ///< Writing was not successful (e.g. because there | ||||||
|                          ///< was no space left on device). |                          ///< was no space left on device). | ||||||
|   kSDWriteIgnError,      ///< Writing resulted in a error which can be ignored |   kSDWriteIgnError,      ///< Writing resulted in a error which can be ignored | ||||||
|                          ///< (e.g. when trying to dump a function reference or |                          ///< (e.g. when trying to dump a function reference or | ||||||
| @@ -3005,7 +3005,7 @@ shada_write_exit: | |||||||
| ///                      location is used. | ///                      location is used. | ||||||
| /// @param[in]  nomerge  If true then old file is ignored. | /// @param[in]  nomerge  If true then old file is ignored. | ||||||
| /// | /// | ||||||
| /// @return OK if writing was successfull, FAIL otherwise. | /// @return OK if writing was successful, FAIL otherwise. | ||||||
| int shada_write_file(const char *const file, bool nomerge) | int shada_write_file(const char *const file, bool nomerge) | ||||||
| { | { | ||||||
|   if (shada_disabled()) { |   if (shada_disabled()) { | ||||||
| @@ -3341,7 +3341,7 @@ static ShaDaReadResult fread_len(ShaDaReadDef *const sd_reader, | |||||||
| /// @param[in]   sd_reader  Structure containing file reader definition. | /// @param[in]   sd_reader  Structure containing file reader definition. | ||||||
| /// @param[out]  result     Location where result is saved. | /// @param[out]  result     Location where result is saved. | ||||||
| /// | /// | ||||||
| /// @return kSDReadStatusSuccess if reading was successfull, | /// @return kSDReadStatusSuccess if reading was successful, | ||||||
| ///         kSDReadStatusNotShaDa if there were not enough bytes to read or | ///         kSDReadStatusNotShaDa if there were not enough bytes to read or | ||||||
| ///         kSDReadStatusReadError if reading failed for whatever reason. | ///         kSDReadStatusReadError if reading failed for whatever reason. | ||||||
| static ShaDaReadResult msgpack_read_uint64(ShaDaReadDef *const sd_reader, | static ShaDaReadResult msgpack_read_uint64(ShaDaReadDef *const sd_reader, | ||||||
|   | |||||||
| @@ -3981,7 +3981,7 @@ static void add_keyword(char_u *const name, | |||||||
|                                      STRLEN(kp->keyword), hash); |                                      STRLEN(kp->keyword), hash); | ||||||
|  |  | ||||||
|   // even though it looks like only the kp->keyword member is |   // even though it looks like only the kp->keyword member is | ||||||
|   // being used here, vim uses some pointer trickery to get the orignal |   // being used here, vim uses some pointer trickery to get the original | ||||||
|   // struct again later by using knowledge of the offset of the keyword |   // struct again later by using knowledge of the offset of the keyword | ||||||
|   // field in the struct. See the definition of the HI2KE macro. |   // field in the struct. See the definition of the HI2KE macro. | ||||||
|   if (HASHITEM_EMPTY(hi)) { |   if (HASHITEM_EMPTY(hi)) { | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ describe('CTRL-W CTRL-I', function() | |||||||
|       start found wrong line |       start found wrong line | ||||||
|       test text]]) |       test text]]) | ||||||
|  |  | ||||||
|     -- Search for the second occurence of start and append to register |     -- Search for the second occurrence of start and append to register | ||||||
|     feed_command('/start') |     feed_command('/start') | ||||||
|     feed('2[<C-i>') |     feed('2[<C-i>') | ||||||
|     feed_command('yank A') |     feed_command('yank A') | ||||||
|   | |||||||
| @@ -360,7 +360,7 @@ describe('eval', function() | |||||||
|        abcD3b]]) |        abcD3b]]) | ||||||
|  |  | ||||||
|     -- From now on we delete the buffer contents after each expect() to make |     -- From now on we delete the buffer contents after each expect() to make | ||||||
|     -- the next expect() easier to write.  This is neccessary because null |     -- the next expect() easier to write.  This is necessary because null | ||||||
|     -- bytes on a line by itself don't play well together with the dedent |     -- bytes on a line by itself don't play well together with the dedent | ||||||
|     -- function used in expect(). |     -- function used in expect(). | ||||||
|     command('%delete') |     command('%delete') | ||||||
| @@ -416,7 +416,7 @@ describe('eval', function() | |||||||
|       ' abcD3b50') |       ' abcD3b50') | ||||||
|   end) |   end) | ||||||
|  |  | ||||||
|   -- The tests for setting lists with NLs are split into seperate it() blocks |   -- The tests for setting lists with NLs are split into separate it() blocks | ||||||
|   -- to make the expect() calls easier to write.  Otherwise the null byte can |   -- to make the expect() calls easier to write.  Otherwise the null byte can | ||||||
|   -- make trouble on a line on its own. |   -- make trouble on a line on its own. | ||||||
|   it('setting lists with NLs with setreg(), part 1', function() |   it('setting lists with NLs with setreg(), part 1', function() | ||||||
|   | |||||||
| @@ -98,7 +98,7 @@ describe('lua: buffer event callbacks', function() | |||||||
|     command('undo') |     command('undo') | ||||||
|  |  | ||||||
|     -- plugins can opt in to receive changedtick events, or choose |     -- plugins can opt in to receive changedtick events, or choose | ||||||
|     -- to only recieve actual changes. |     -- to only receive actual changes. | ||||||
|     check_events({{ "test1", "lines", 1, tick, 3, 4, 5, 13 }, |     check_events({{ "test1", "lines", 1, tick, 3, 4, 5, 13 }, | ||||||
|         { "test2", "lines", 1, tick, 3, 4, 5, 13 }, |         { "test2", "lines", 1, tick, 3, 4, 5, 13 }, | ||||||
|         { "test2", "changedtick", 1, tick+1 } }) |         { "test2", "changedtick", 1, tick+1 } }) | ||||||
| @@ -111,7 +111,7 @@ describe('lua: buffer event callbacks', function() | |||||||
|     tick = tick + 1 |     tick = tick + 1 | ||||||
|  |  | ||||||
|     -- plugins can opt in to receive changedtick events, or choose |     -- plugins can opt in to receive changedtick events, or choose | ||||||
|     -- to only recieve actual changes. |     -- to only receive actual changes. | ||||||
|     check_events({{ "test1", "lines", 1, tick, 6, 7, 9, 16 }, |     check_events({{ "test1", "lines", 1, tick, 6, 7, 9, 16 }, | ||||||
|         { "test2", "lines", 1, tick, 6, 7, 9, 16 }}) |         { "test2", "lines", 1, tick, 6, 7, 9, 16 }}) | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								third-party/cmake/BuildLuv.cmake
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								third-party/cmake/BuildLuv.cmake
									
									
									
									
										vendored
									
									
								
							| @@ -106,7 +106,7 @@ elseif(MSVC) | |||||||
|     # Same as Unix without fPIC |     # Same as Unix without fPIC | ||||||
|     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1} ${LUV_INCLUDE_FLAGS}" |     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1} ${LUV_INCLUDE_FLAGS}" | ||||||
|     # Make sure we use the same generator, otherwise we may |     # Make sure we use the same generator, otherwise we may | ||||||
|     # accidentaly end up using different MSVC runtimes |     # accidentally end up using different MSVC runtimes | ||||||
|     -DCMAKE_GENERATOR=${CMAKE_GENERATOR} |     -DCMAKE_GENERATOR=${CMAKE_GENERATOR} | ||||||
|     # Use static runtime |     # Use static runtime | ||||||
|     -DCMAKE_C_FLAGS_DEBUG="-MTd" |     -DCMAKE_C_FLAGS_DEBUG="-MTd" | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								third-party/cmake/BuildMsgpack.cmake
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								third-party/cmake/BuildMsgpack.cmake
									
									
									
									
										vendored
									
									
								
							| @@ -68,7 +68,7 @@ elseif(MSVC) | |||||||
|     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1}" |     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1}" | ||||||
|     -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} |     -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||||||
|     # Make sure we use the same generator, otherwise we may |     # Make sure we use the same generator, otherwise we may | ||||||
|     # accidentaly end up using different MSVC runtimes |     # accidentally end up using different MSVC runtimes | ||||||
|     -DCMAKE_GENERATOR=${CMAKE_GENERATOR}) |     -DCMAKE_GENERATOR=${CMAKE_GENERATOR}) | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								third-party/cmake/BuildUtf8proc.cmake
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								third-party/cmake/BuildUtf8proc.cmake
									
									
									
									
										vendored
									
									
								
							| @@ -59,7 +59,7 @@ elseif(MSVC) | |||||||
|     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1}" |     "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1}" | ||||||
|     -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} |     -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||||||
|     # Make sure we use the same generator, otherwise we may |     # Make sure we use the same generator, otherwise we may | ||||||
|     # accidentaly end up using different MSVC runtimes |     # accidentally end up using different MSVC runtimes | ||||||
|     -DCMAKE_GENERATOR=${CMAKE_GENERATOR}) |     -DCMAKE_GENERATOR=${CMAKE_GENERATOR}) | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Hye Sung Jung
					Hye Sung Jung