0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1194: typos and small problems in source files

Problem:    Typos and small problems in source files.
Solution:   Small fixes.
This commit is contained in:
Bram Moolenaar
2019-04-21 00:00:13 +02:00
parent 037c54f261
commit ad3ec76bb8
10 changed files with 16 additions and 15 deletions

View File

@@ -1906,7 +1906,7 @@ channel_save(channel_T *channel, ch_part_T part, char_u *buf, int len,
if (prepend) if (prepend)
{ {
/* preend node to the head of the queue */ // prepend node to the head of the queue
node->rq_next = head->rq_next; node->rq_next = head->rq_next;
node->rq_prev = NULL; node->rq_prev = NULL;
if (head->rq_next == NULL) if (head->rq_next == NULL)
@@ -1917,7 +1917,7 @@ channel_save(channel_T *channel, ch_part_T part, char_u *buf, int len,
} }
else else
{ {
/* append node to the tail of the queue */ // append node to the tail of the queue
node->rq_next = NULL; node->rq_next = NULL;
node->rq_prev = head->rq_prev; node->rq_prev = head->rq_prev;
if (head->rq_prev == NULL) if (head->rq_prev == NULL)

View File

@@ -42,7 +42,7 @@ typedef struct {
/* Optional function pointer for a self-test. */ /* Optional function pointer for a self-test. */
int (* self_test_fn)(); int (* self_test_fn)();
// Function pointer for initializing encryption/description. // Function pointer for initializing encryption/decryption.
void (* init_fn)(cryptstate_T *state, char_u *key, void (* init_fn)(cryptstate_T *state, char_u *key,
char_u *salt, int salt_len, char_u *seed, int seed_len); char_u *salt, int salt_len, char_u *seed, int seed_len);

View File

@@ -4558,10 +4558,8 @@ ins_esc(
/* Re-enable bracketed paste mode. */ /* Re-enable bracketed paste mode. */
out_str(T_BE); out_str(T_BE);
/* // When recording or for CTRL-O, need to display the new mode.
* When recording or for CTRL-O, need to display the new mode. // Otherwise remove the mode message.
* Otherwise remove the mode message.
*/
if (reg_recording != 0 || restart_edit != NUL) if (reg_recording != 0 || restart_edit != NUL)
showmode(); showmode();
else if (p_smd && (got_int || !skip_showmode())) else if (p_smd && (got_int || !skip_showmode()))

View File

@@ -6,7 +6,7 @@
# 2 target directory e.g., "/usr/local/man/it/man1" # 2 target directory e.g., "/usr/local/man/it/man1"
# 3 language addition e.g., "" or "-it" # 3 language addition e.g., "" or "-it"
# 4 vim location as used in manual pages e.g., "/usr/local/share/vim" # 4 vim location as used in manual pages e.g., "/usr/local/share/vim"
# 5 runtime dir for menu.vim et al. e.g., "/usr/local/share/vim/vim70" # 5 runtime dir for menu.vim et al. e.g., "/usr/local/share/vim/vim81"
# 6 runtime dir for global vimrc file e.g., "/usr/local/share/vim" # 6 runtime dir for global vimrc file e.g., "/usr/local/share/vim"
# 7 source dir for help files e.g., "../runtime/doc" # 7 source dir for help files e.g., "../runtime/doc"
# 8 mode bits for manpages e.g., "644" # 8 mode bits for manpages e.g., "644"

View File

@@ -81,7 +81,7 @@ typedef struct
/* /*
* Structure representing a NFA state. * Structure representing a NFA state.
* A NFA state may have no outgoing edge, when it is a NFA_MATCH state. * An NFA state may have no outgoing edge, when it is a NFA_MATCH state.
*/ */
typedef struct nfa_state nfa_state_T; typedef struct nfa_state nfa_state_T;
struct nfa_state struct nfa_state

View File

@@ -2368,9 +2368,9 @@ parse_line:
* Don't add identical matches. * Don't add identical matches.
* Add all cscope tags, because they are all listed. * Add all cscope tags, because they are all listed.
* "mfp" is used as a hash key, there is a NUL byte to end * "mfp" is used as a hash key, there is a NUL byte to end
* the part matters for comparing, more bytes may follow * the part that matters for comparing, more bytes may
* after it. E.g. help tags store the priority after the * follow after it. E.g. help tags store the priority
* NUL. * after the NUL.
*/ */
#ifdef FEAT_CSCOPE #ifdef FEAT_CSCOPE
if (use_cscope) if (use_cscope)

View File

@@ -21,8 +21,8 @@
* (char **). This define removes that prototype. We include our own prototype * (char **). This define removes that prototype. We include our own prototype
* below. * below.
*/ */
#define tgetstr tgetstr_defined_wrong #define tgetstr tgetstr_defined_wrong
#include "vim.h" #include "vim.h"
#ifdef HAVE_TGETENT #ifdef HAVE_TGETENT

View File

@@ -5671,9 +5671,9 @@ typedef int *DWORD_PTR;
typedef int HPCON; typedef int HPCON;
typedef int HRESULT; typedef int HRESULT;
typedef int LPPROC_THREAD_ATTRIBUTE_LIST; typedef int LPPROC_THREAD_ATTRIBUTE_LIST;
typedef int SIZE_T;
typedef int PSIZE_T; typedef int PSIZE_T;
typedef int PVOID; typedef int PVOID;
typedef int SIZE_T;
typedef int WINAPI; typedef int WINAPI;
#endif #endif

View File

@@ -508,7 +508,8 @@ fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error)
*error = ERROR_SCRIPT; *error = ERROR_SCRIPT;
else else
{ {
sprintf((char *)fname_buf + 3, "%ld_", (long)current_sctx.sc_sid); sprintf((char *)fname_buf + 3, "%ld_",
(long)current_sctx.sc_sid);
i = (int)STRLEN(fname_buf); i = (int)STRLEN(fname_buf);
} }
} }

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1194,
/**/ /**/
1193, 1193,
/**/ /**/