diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-05-13 20:19:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-05-13 20:19:58 +0200 |
commit | 24dc230871258018d2a6a616039283cb7f17684d (patch) | |
tree | 5acb22525821718c72be1a2ef24a1af874954a19 /src | |
parent | caca646bf0f5e55fe32604e90b87b02034e2812b (diff) |
updated for version 7.4.295v7.4.295
Problem: Various typos, bad white space and unclear comments.
Solution: Fix typos. Improve white space. Update comments.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_gtk_x11.c | 1 | ||||
-rw-r--r-- | src/macros.h | 2 | ||||
-rw-r--r-- | src/os_unix.c | 2 | ||||
-rw-r--r-- | src/screen.c | 4 | ||||
-rw-r--r-- | src/structs.h | 2 | ||||
-rw-r--r-- | src/testdir/test49.in | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
7 files changed, 9 insertions, 6 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 3e1616c853..0be60ad014 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -2054,6 +2054,7 @@ write_session_file(char_u *filename) ssop_flags = save_ssop_flags; g_free(mksession_cmdline); + /* * Reopen the file and append a command to restore v:this_session, * as if this save never happened. This is to avoid conflicts with diff --git a/src/macros.h b/src/macros.h index f4a068cfb9..2706a02524 100644 --- a/src/macros.h +++ b/src/macros.h @@ -264,7 +264,7 @@ # define mb_ptr_adv(p) p += has_mbyte ? (*mb_ptr2len)(p) : 1 /* Advance multi-byte pointer, do not skip over composing chars. */ # define mb_cptr_adv(p) p += enc_utf8 ? utf_ptr2len(p) : has_mbyte ? (*mb_ptr2len)(p) : 1 -/* Backup multi-byte pointer. */ +/* Backup multi-byte pointer. Only use with "p" > "s" ! */ # define mb_ptr_back(s, p) p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1 /* get length of multi-byte char, not including composing chars */ # define mb_cptr2len(p) (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p)) diff --git a/src/os_unix.c b/src/os_unix.c index b735a13bb0..65ce685605 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3783,7 +3783,7 @@ check_mouse_termcode() del_mouse_termcode(KS_URXVT_MOUSE); # endif # ifdef FEAT_MOUSE_SGR - /* same as the dec mouse */ + /* There is no conflict with xterm mouse */ if (use_xterm_mouse() == 4 # ifdef FEAT_GUI && !gui.in_use diff --git a/src/screen.c b/src/screen.c index f802137200..cdb416d03d 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2456,8 +2456,8 @@ fold_line(wp, fold_count, foldinfo, lnum, row) if (len > 0) { int w = number_width(wp); - long num; - char *fmt = "%*ld "; + long num; + char *fmt = "%*ld "; if (len > w + 1) len = w + 1; diff --git a/src/structs.h b/src/structs.h index 9bb35ceec1..16a20716a4 100644 --- a/src/structs.h +++ b/src/structs.h @@ -572,7 +572,7 @@ struct memfile unsigned mf_page_size; /* number of bytes in a page */ int mf_dirty; /* TRUE if there are dirty blocks */ #ifdef FEAT_CRYPT - buf_T *mf_buffer; /* bufer this memfile is for */ + buf_T *mf_buffer; /* buffer this memfile is for */ char_u mf_seed[MF_SEED_LEN]; /* seed for encryption */ /* Values for key, method and seed used for reading data blocks when diff --git a/src/testdir/test49.in b/src/testdir/test49.in index bd6cb4cad7..5e1d6b461e 100644 --- a/src/testdir/test49.in +++ b/src/testdir/test49.in @@ -1,7 +1,7 @@ This is a test of the script language. If after adding a new test, the test output doesn't appear properly in -test49.failed, try to add one ore more "G"s at the line ending in "test.out" +test49.failed, try to add one or more "G"s at the line ending in "test.out" STARTTEST :so small.vim diff --git a/src/version.c b/src/version.c index 94e4e2d467..3ea187df27 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 295, +/**/ 294, /**/ 293, |