Skip to content

Commit caa55b6

Browse files
committed
patch 8.0.0164: outdated and misplaced comments
Problem: Outdated and misplaced comments. Solution: Fix the comments.
1 parent 6856393 commit caa55b6

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

src/charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ vim_isIDc(int c)
887887

888888
/*
889889
* return TRUE if 'c' is a keyword character: Letters and characters from
890-
* 'iskeyword' option for current buffer.
890+
* 'iskeyword' option for the current buffer.
891891
* For multi-byte characters mb_get_class() is used (builtin rules).
892892
*/
893893
int

src/getchar.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -978,23 +978,22 @@ ins_typebuf(
978978

979979
addlen = (int)STRLEN(str);
980980

981-
/*
982-
* Easy case: there is room in front of typebuf.tb_buf[typebuf.tb_off]
983-
*/
984981
if (offset == 0 && addlen <= typebuf.tb_off)
985982
{
983+
/*
984+
* Easy case: there is room in front of typebuf.tb_buf[typebuf.tb_off]
985+
*/
986986
typebuf.tb_off -= addlen;
987987
mch_memmove(typebuf.tb_buf + typebuf.tb_off, str, (size_t)addlen);
988988
}
989-
990-
/*
991-
* Need to allocate a new buffer.
992-
* In typebuf.tb_buf there must always be room for 3 * MAXMAPLEN + 4
993-
* characters. We add some extra room to avoid having to allocate too
994-
* often.
995-
*/
996989
else
997990
{
991+
/*
992+
* Need to allocate a new buffer.
993+
* In typebuf.tb_buf there must always be room for 3 * MAXMAPLEN + 4
994+
* characters. We add some extra room to avoid having to allocate too
995+
* often.
996+
*/
998997
newoff = MAXMAPLEN + 4;
999998
newlen = typebuf.tb_len + addlen + newoff + 4 * (MAXMAPLEN + 4);
1000999
if (newlen < 0) /* string is getting too long */
@@ -2009,7 +2008,7 @@ vgetorpeek(int advance)
20092008
{
20102009
/* KeyTyped = FALSE; When the command that stuffed something
20112010
* was typed, behave like the stuffed command was typed.
2012-
* needed for CTRL-W CTRl-] to open a fold, for example. */
2011+
* needed for CTRL-W CTRL-] to open a fold, for example. */
20132012
KeyStuffed = TRUE;
20142013
}
20152014
if (typebuf.tb_no_abbr_cnt == 0)

src/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ get_list_tv(char_u **arg, typval_T *rettv, int evaluate)
885885
}
886886

887887
/*
888-
* Write list of strings to file
888+
* Write "list" of strings to file "fd".
889889
*/
890890
int
891891
write_list(FILE *fd, list_T *list, int binary)

src/misc2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ incl(pos_T *lp)
403403
int
404404
dec_cursor(void)
405405
{
406-
return dec(&curwin->w_cursor);
406+
return dec(&curwin->w_cursor);
407407
}
408408

409409
int

src/testdir/README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ can. Use an old style test when it needs to run without the +eval feature.
1414
TO ADD A NEW STYLE TEST:
1515

1616
1) Create a test_<subject>.vim file.
17-
2) Add test_<subject>.vim to NEW_TESTS in Make_all.mak in alphabetical order.
18-
3) Use make test_<subject>.res to run a single test in src/testdir/.
17+
2) Add test_<subject>.res to NEW_TESTS in Make_all.mak in alphabetical order.
18+
3) Also add an entry in src/Makefile.
19+
4) Use make test_<subject>.res to run a single test in src/testdir/.
1920
Use make test_<subject> to run a single test in src/.
20-
4) Also add an entry in src/Makefile.
2121

2222
What you can use (see test_assert.vim for an example):
2323
- Call assert_equal(), assert_true(), assert_false(), etc.

src/version.c

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

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
164,
767769
/**/
768770
163,
769771
/**/

0 commit comments

Comments
 (0)