changeset 16378:3d6b282e2d6e v8.1.1194

patch 8.1.1194: typos and small problems in source files commit https://github.com/vim/vim/commit/ad3ec76bb8030b9a1d3f0a49c374d0de2383b977 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 21 00:00:13 2019 +0200 patch 8.1.1194: typos and small problems in source files Problem: Typos and small problems in source files. Solution: Small fixes.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Apr 2019 00:15:05 +0200
parents b79321679d79
children c15f3b4daf0e
files src/channel.c src/crypt.c src/edit.c src/installman.sh src/regexp.h src/tag.c src/term.c src/terminal.c src/userfunc.c src/version.c
diffstat 10 files changed, 16 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -1906,7 +1906,7 @@ channel_save(channel_T *channel, ch_part
 
     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_prev = NULL;
 	if (head->rq_next == NULL)
@@ -1917,7 +1917,7 @@ channel_save(channel_T *channel, ch_part
     }
     else
     {
-	/* append node to the tail of the queue */
+	// append node to the tail of the queue
 	node->rq_next = NULL;
 	node->rq_prev = head->rq_prev;
 	if (head->rq_prev == NULL)
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -42,7 +42,7 @@ typedef struct {
     /* Optional function pointer for a self-test. */
     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,
 		      char_u *salt, int salt_len, char_u *seed, int seed_len);
 
--- a/src/edit.c
+++ b/src/edit.c
@@ -4558,10 +4558,8 @@ ins_esc(
 	/* Re-enable bracketed paste mode. */
 	out_str(T_BE);
 
-    /*
-     * When recording or for CTRL-O, need to display the new mode.
-     * Otherwise remove the mode message.
-     */
+    // When recording or for CTRL-O, need to display the new mode.
+    // Otherwise remove the mode message.
     if (reg_recording != 0 || restart_edit != NUL)
 	showmode();
     else if (p_smd && (got_int || !skip_showmode()))
--- a/src/installman.sh
+++ b/src/installman.sh
@@ -6,7 +6,7 @@
 # 2  target directory			   e.g., "/usr/local/man/it/man1"
 # 3  language addition			   e.g., "" or "-it"
 # 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"
 # 7  source dir for help files		   e.g., "../runtime/doc"
 # 8  mode bits for manpages		   e.g., "644"
--- a/src/regexp.h
+++ b/src/regexp.h
@@ -81,7 +81,7 @@ typedef struct
 
 /*
  * 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;
 struct nfa_state
--- a/src/tag.c
+++ b/src/tag.c
@@ -2368,9 +2368,9 @@ parse_line:
 		     * Don't add identical matches.
 		     * Add all cscope tags, because they are all listed.
 		     * "mfp" is used as a hash key, there is a NUL byte to end
-		     * the part matters for comparing, more bytes may follow
-		     * after it.  E.g. help tags store the priority after the
-		     * NUL.
+		     * the part that matters for comparing, more bytes may
+		     * follow after it.  E.g. help tags store the priority
+		     * after the NUL.
 		     */
 #ifdef FEAT_CSCOPE
 		    if (use_cscope)
--- a/src/term.c
+++ b/src/term.c
@@ -21,8 +21,8 @@
  * (char **). This define removes that prototype. We include our own prototype
  * below.
  */
-
 #define tgetstr tgetstr_defined_wrong
+
 #include "vim.h"
 
 #ifdef HAVE_TGETENT
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -5671,9 +5671,9 @@ typedef int *DWORD_PTR;
 typedef int HPCON;
 typedef int HRESULT;
 typedef int LPPROC_THREAD_ATTRIBUTE_LIST;
+typedef int SIZE_T;
 typedef int PSIZE_T;
 typedef int PVOID;
-typedef int SIZE_T;
 typedef int WINAPI;
 #endif
 
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -508,7 +508,8 @@ fname_trans_sid(char_u *name, char_u *fn
 		*error = ERROR_SCRIPT;
 	    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);
 	    }
 	}
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1194,
+/**/
     1193,
 /**/
     1192,