Skip to content

Commit ad3ec76

Browse files
committed
patch 8.1.1194: typos and small problems in source files
Problem: Typos and small problems in source files. Solution: Small fixes.
1 parent 037c54f commit ad3ec76

10 files changed

Lines changed: 16 additions & 15 deletions

File tree

src/channel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ channel_save(channel_T *channel, ch_part_T part, char_u *buf, int len,
19061906

19071907
if (prepend)
19081908
{
1909-
/* preend node to the head of the queue */
1909+
// prepend node to the head of the queue
19101910
node->rq_next = head->rq_next;
19111911
node->rq_prev = NULL;
19121912
if (head->rq_next == NULL)
@@ -1917,7 +1917,7 @@ channel_save(channel_T *channel, ch_part_T part, char_u *buf, int len,
19171917
}
19181918
else
19191919
{
1920-
/* append node to the tail of the queue */
1920+
// append node to the tail of the queue
19211921
node->rq_next = NULL;
19221922
node->rq_prev = head->rq_prev;
19231923
if (head->rq_prev == NULL)

src/crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef struct {
4242
/* Optional function pointer for a self-test. */
4343
int (* self_test_fn)();
4444

45-
// Function pointer for initializing encryption/description.
45+
// Function pointer for initializing encryption/decryption.
4646
void (* init_fn)(cryptstate_T *state, char_u *key,
4747
char_u *salt, int salt_len, char_u *seed, int seed_len);
4848

src/edit.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4558,10 +4558,8 @@ ins_esc(
45584558
/* Re-enable bracketed paste mode. */
45594559
out_str(T_BE);
45604560

4561-
/*
4562-
* When recording or for CTRL-O, need to display the new mode.
4563-
* Otherwise remove the mode message.
4564-
*/
4561+
// When recording or for CTRL-O, need to display the new mode.
4562+
// Otherwise remove the mode message.
45654563
if (reg_recording != 0 || restart_edit != NUL)
45664564
showmode();
45674565
else if (p_smd && (got_int || !skip_showmode()))

src/installman.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# 2 target directory e.g., "/usr/local/man/it/man1"
77
# 3 language addition e.g., "" or "-it"
88
# 4 vim location as used in manual pages e.g., "/usr/local/share/vim"
9-
# 5 runtime dir for menu.vim et al. e.g., "/usr/local/share/vim/vim70"
9+
# 5 runtime dir for menu.vim et al. e.g., "/usr/local/share/vim/vim81"
1010
# 6 runtime dir for global vimrc file e.g., "/usr/local/share/vim"
1111
# 7 source dir for help files e.g., "../runtime/doc"
1212
# 8 mode bits for manpages e.g., "644"

src/regexp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef struct
8181

8282
/*
8383
* Structure representing a NFA state.
84-
* A NFA state may have no outgoing edge, when it is a NFA_MATCH state.
84+
* An NFA state may have no outgoing edge, when it is a NFA_MATCH state.
8585
*/
8686
typedef struct nfa_state nfa_state_T;
8787
struct nfa_state

src/tag.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,9 +2368,9 @@ find_tags(
23682368
* Don't add identical matches.
23692369
* Add all cscope tags, because they are all listed.
23702370
* "mfp" is used as a hash key, there is a NUL byte to end
2371-
* the part matters for comparing, more bytes may follow
2372-
* after it. E.g. help tags store the priority after the
2373-
* NUL.
2371+
* the part that matters for comparing, more bytes may
2372+
* follow after it. E.g. help tags store the priority
2373+
* after the NUL.
23742374
*/
23752375
#ifdef FEAT_CSCOPE
23762376
if (use_cscope)

src/term.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* (char **). This define removes that prototype. We include our own prototype
2222
* below.
2323
*/
24-
2524
#define tgetstr tgetstr_defined_wrong
25+
2626
#include "vim.h"
2727

2828
#ifdef HAVE_TGETENT

src/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5671,9 +5671,9 @@ typedef int *DWORD_PTR;
56715671
typedef int HPCON;
56725672
typedef int HRESULT;
56735673
typedef int LPPROC_THREAD_ATTRIBUTE_LIST;
5674+
typedef int SIZE_T;
56745675
typedef int PSIZE_T;
56755676
typedef int PVOID;
5676-
typedef int SIZE_T;
56775677
typedef int WINAPI;
56785678
#endif
56795679

src/userfunc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ fname_trans_sid(char_u *name, char_u *fname_buf, char_u **tofree, int *error)
508508
*error = ERROR_SCRIPT;
509509
else
510510
{
511-
sprintf((char *)fname_buf + 3, "%ld_", (long)current_sctx.sc_sid);
511+
sprintf((char *)fname_buf + 3, "%ld_",
512+
(long)current_sctx.sc_sid);
512513
i = (int)STRLEN(fname_buf);
513514
}
514515
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1194,
774776
/**/
775777
1193,
776778
/**/

0 commit comments

Comments
 (0)