spelling fixes #827

This commit is contained in:
Will Stamper
2014-06-08 13:30:44 -05:00
committed by Justin M. Keyes
parent 168575f3f7
commit 5b3b3fd3ed
30 changed files with 51 additions and 51 deletions

View File

@@ -1215,7 +1215,7 @@ void enter_buffer(buf_T *buf)
/* Make sure the buffer is loaded. */
if (curbuf->b_ml.ml_mfp == NULL) { /* need to load the file */
/* If there is no filetype, allow for detecting one. Esp. useful for
* ":ball" used in a autocommand. If there already is a filetype we
* ":ball" used in an autocommand. If there already is a filetype we
* might prefer to keep it. */
if (*curbuf->b_p_ft == NUL)
did_filetype = FALSE;

View File

@@ -2204,7 +2204,7 @@ static int F_isterm(int c)
return FALSE;
}
/// Convert the given Farsi character into a ending type.
/// Convert the given Farsi character into an ending type.
///
/// @param c The character to convert.
///

View File

@@ -130,7 +130,7 @@ typedef struct ff_visited {
* 3) search from Vims current directory downwards for the file "tags"
* As you can see, the first and the third search are for the same file, so for
* the third search we can use the visited list of the first search. For the
* second search we must start from a empty visited list.
* second search we must start from an empty visited list.
* The struct ff_visited_list_hdr is used to manage a linked list of already
* visited lists.
*/
@@ -1089,7 +1089,7 @@ static int ff_check_visited(ff_visited_T **visited_list, char_u *fname, char_u *
bool url = false;
FileInfo file_info;
// For an URL we only compare the name, otherwise we compare the
// For a URL we only compare the name, otherwise we compare the
// device/inode.
if (path_with_url(fname)) {
vim_strncpy(ff_expand_buffer, fname, MAXPATHL - 1);

View File

@@ -1001,7 +1001,7 @@ retry:
* We allocate as much space for the file as we can get, plus
* space for the old line plus room for one terminating NUL.
* The amount is limited by the fact that read() only can read
* upto max_unsigned characters (and other things).
* up to max_unsigned characters (and other things).
*/
{
if (!skip_read) {

View File

@@ -2414,7 +2414,7 @@ inchar (
}
/*
* Don't reset these when at the hit-return prompt, otherwise a endless
* Don't reset these when at the hit-return prompt, otherwise an endless
* recursive loop may result (write error in swapfile, hit-return, timeout
* on char wait, flush swapfile, write error....).
*/

View File

@@ -2121,7 +2121,7 @@ int get_c_indent(void)
*/
if (curwin->w_cursor.lnum <= ourscope) {
/* we reached end of scope:
* if looking for a enum or structure initialization
* if looking for an enum or structure initialization
* go further back:
* if it is an initializer (enum xxx or xxx =), then
* don't add ind_continuation, otherwise it is a variable
@@ -2184,7 +2184,7 @@ int get_c_indent(void)
if (terminated == ',')
break;
/* if it es a enum declaration or an assignment,
/* if it is an enum declaration or an assignment,
* we are done.
*/
if (terminated != ';' && cin_isinit())
@@ -2472,7 +2472,7 @@ int get_c_indent(void)
* 123,
* sizeof
* here
* Otherwise check whether it is a enumeration or structure
* Otherwise check whether it is an enumeration or structure
* initialisation (not indented) or a variable declaration
* (indented).
*/

View File

@@ -2973,7 +2973,7 @@ static int ml_add_stack(buf_T *buf)
* Update the pointer blocks on the stack for inserted/deleted lines.
* The stack itself is also updated.
*
* When a insert/delete line action fails, the line is not inserted/deleted,
* When an insert/delete line action fails, the line is not inserted/deleted,
* but the pointer blocks have already been updated. That is fixed here by
* walking through the stack.
*
@@ -3383,7 +3383,7 @@ findswapname (
process_still_running = FALSE;
#endif
/*
* If there is an SwapExists autocommand and we can handle
* If there is a SwapExists autocommand and we can handle
* the response, trigger it. It may return 0 to ask the
* user anyway.
*/

View File

@@ -2806,7 +2806,7 @@ copy_char (
///
/// @param message Message which will be part of the confirm_msg
/// @param buttons String containing button names
/// @param[out] has_hotkey A element in this array is set to true if
/// @param[out] has_hotkey An element in this array is set to true if
/// corresponding button has a hotkey
///
/// @return Pointer to memory allocated for storing hotkeys
@@ -2885,7 +2885,7 @@ static char_u *msg_show_console_dialog(char_u *message, char_u *buttons, int dfl
/// @param message Message which will be part of the confirm_msg
/// @param buttons String containing button names
/// @param default_button_idx Number of default button
/// @param has_hotkey A element in this array is true if corresponding button
/// @param has_hotkey An element in this array is true if corresponding button
/// has a hotkey
/// @param[out] hotkeys_ptr Pointer to the memory location where hotkeys will be copied
static void copy_hotkeys_and_msg(const char_u *message, char_u *buttons,

View File

@@ -334,7 +334,7 @@ static void shift_block(oparg_T *oap, int amount)
* 3. Divvy into TABs & spp
* 4. Construct new string
*/
total += bd.pre_whitesp; /* all virtual WS upto & incl a split TAB */
total += bd.pre_whitesp; /* all virtual WS up to & incl a split TAB */
ws_vcol = bd.start_vcol - bd.pre_whitesp;
if (bd.startspaces) {
if (has_mbyte)

View File

@@ -63,7 +63,7 @@ int64_t os_get_pid()
#endif
}
/// Get the hostname of the machine runing Neovim.
/// Get the hostname of the machine running Neovim.
///
/// @param hostname Buffer to store the hostname.
/// @param len Length of `hostname`.

View File

@@ -74,7 +74,7 @@ bool event_poll(int32_t ms)
// Timeout passed as argument to the timer
timer.data = &timed_out;
// We only start the timer after the loop is running, for that we
// use an prepare handle(pass the interval as data to it)
// use a prepare handle(pass the interval as data to it)
timer_prepare.data = &ms;
uv_prepare_start(&timer_prepare, timer_prepare_cb);
} else if (ms == 0) {

View File

@@ -148,7 +148,7 @@ static bool is_executable_in_path(const char_u *name)
/// Get stat information for a file.
///
/// @return OK on success, FAIL if an failure occured.
/// @return OK on success, FAIL if a failure occurred.
int os_stat(const char_u *name, uv_stat_t *statbuf)
{
uv_fs_t request;
@@ -299,7 +299,7 @@ int os_remove(const char *path)
///
/// @param file_descriptor File descriptor of the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info(const char *path, FileInfo *file_info)
{
if (os_stat((char_u *)path, &(file_info->stat)) == OK) {
@@ -312,7 +312,7 @@ bool os_get_file_info(const char *path, FileInfo *file_info)
///
/// @param path Path to the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info_link(const char *path, FileInfo *file_info)
{
uv_fs_t request;
@@ -329,7 +329,7 @@ bool os_get_file_info_link(const char *path, FileInfo *file_info)
///
/// @param file_descriptor File descriptor of the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info_fd(int file_descriptor, FileInfo *file_info)
{
uv_fs_t request;

View File

@@ -53,7 +53,7 @@ void msgpack_rpc_error(char *msg, msgpack_packer *res)
///
/// @param obj The object to convert
/// @param[out] arg A pointer to the avalue
/// @return true if the convertion succeeded, false otherwise
/// @return true if the conversion succeeded, false otherwise
bool msgpack_rpc_to_boolean(msgpack_object *obj, Boolean *arg)
FUNC_ATTR_NONNULL_ALL;
bool msgpack_rpc_to_integer(msgpack_object *obj, Integer *arg)

View File

@@ -110,7 +110,7 @@ void rstream_set_file(RStream *rstream, uv_file file)
}
if (rstream->file_type == UV_FILE) {
// Non-blocking file reads are simulated with a idle handle that reads
// Non-blocking file reads are simulated with an idle handle that reads
// in chunks of rstream->buffer_size, giving time for other events to
// be processed between reads.
rstream->fread_idle = xmalloc(sizeof(uv_idle_t));

View File

@@ -115,7 +115,7 @@ void server_start(char *endpoint)
uint32_t addr_len = ip_end - addr;
if (addr_len > sizeof(ip) - 1) {
// Maximum length of a ip address buffer is 15(eg: 255.255.255.255)
// Maximum length of an IP address buffer is 15(eg: 255.255.255.255)
addr_len = sizeof(ip);
}

View File

@@ -393,7 +393,7 @@ static void alloc_cb(uv_handle_t *handle, size_t suggested, uv_buf_t *buf)
static void read_cb(uv_stream_t *stream, ssize_t cnt, const uv_buf_t *buf)
{
// TODO(tarruda): avoid using a growable array for this, refactor the
// algorithm to call `ml_append` directly(skip unecessary copies/resizes)
// algorithm to call `ml_append` directly(skip unnecessary copies/resizes)
int i;
ProcessData *pdata = (ProcessData *)stream->data;

View File

@@ -1504,7 +1504,7 @@ typedef int (*INTPROCINT)(int);
*/
int mch_libcall(char_u *libname,
char_u *funcname,
char_u *argstring, /* NULL when using a argint */
char_u *argstring, /* NULL when using an argint */
int argint,
char_u **string_result, /* NULL when using number_result */
int *number_result)

View File

@@ -1905,12 +1905,12 @@ int path_full_dir_name(char *directory, char *buffer, int len)
}
if (os_chdir(directory) != SUCCESS) {
// Do not return immediatly since we may be in the wrong directory.
// Do not return immediately since we may be in the wrong directory.
retval = FAIL;
}
if (retval == FAIL || os_dirname((char_u *) buffer, len) == FAIL) {
// Do not return immediatly since we are in the wrong directory.
// Do not return immediately since we are in the wrong directory.
retval = FAIL;
}

View File

@@ -60,7 +60,7 @@
* String searches
*
* The string search functions are divided into two levels:
* lowest: searchit(); uses an pos_T for starting position and found match.
* lowest: searchit(); uses a pos_T for starting position and found match.
* Highest: do_search(); uses curwin->w_cursor; calls searchit().
*
* The last search pattern is remembered for repeating the same search.
@@ -1475,7 +1475,7 @@ pos_T *findmatchlimit(oparg_T *oap, int initc, int flags, int maxtravel)
/*
* if initc given, look in the table for the matching character
* '/' and '*' are special cases: look for start or end of comment.
* When '/' is used, we ignore running backwards into an star-slash, for
* When '/' is used, we ignore running backwards into a star-slash, for
* "[*" command, we just want to find any comment.
*/
if (initc == '/' || initc == '*') {
@@ -2091,7 +2091,7 @@ int findsent(int dir, long count)
while (count--) {
/*
* if on an empty line, skip upto a non-empty line
* if on an empty line, skip up to a non-empty line
*/
if (gchar_pos(&pos) == NUL) {
do

View File

@@ -309,7 +309,7 @@ do_tag (
tagstackidx = oldtagstackidx; /* back to old posn */
goto end_do_tag;
}
/* An BufReadPost autocommand may jump to the '" mark, but
/* A BufReadPost autocommand may jump to the '" mark, but
* we don't what that here. */
curwin->w_cursor.lnum = saved_fmark.mark.lnum;
} else {

View File

@@ -3252,7 +3252,7 @@ win_goto_ver (
foundfr = curwin->w_frame;
while (count--) {
/*
* First go upwards in the tree of frames until we find a upwards or
* First go upwards in the tree of frames until we find an upwards or
* downwards neighbor.
*/
fr = foundfr;