Skip to content

Commit 0e57151

Browse files
committed
patch 9.2.0011: A few double semicolons after statement
Problem: A few double semicolons after statement Solution: Remove those, add a codestyle test Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 48677d7 commit 0e57151

6 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/clipboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,7 @@ clip_wl_receive_data(Clipboard_T *cbd, const char *mime_type, int fd)
29652965

29662966
if (STRCMP(mime_type, VIM_ATOM_NAME) == 0 && buf.ga_len >= 2)
29672967
{
2968-
motion_type = *final++;;
2968+
motion_type = *final++;
29692969
buf.ga_len--;
29702970
}
29712971
else if (STRCMP(mime_type, VIMENC_ATOM_NAME) == 0 && buf.ga_len >= 3)

src/gui_gtk_x11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6947,7 +6947,7 @@ gui_gtk_surface_copy_rect(int dest_x, int dest_y,
69476947
dest_y - src_y);
69486948
cairo_rectangle(cr, dest_x, dest_y, width, height);
69496949
cairo_clip(cr);
6950-
cairo_paint(cr);;
6950+
cairo_paint(cr);
69516951
}
69526952
else
69536953
{

src/insexpand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4589,7 +4589,7 @@ get_next_filename_completion(void)
45894589
int i;
45904590
int score;
45914591
char_u *leader = ins_compl_leader();
4592-
size_t leader_len = ins_compl_leader_len();;
4592+
size_t leader_len = ins_compl_leader_len();
45934593
int in_fuzzy_collect = (cot_fuzzy() && leader_len > 0);
45944594
int *fuzzy_indices_data;
45954595
char_u *last_sep = NULL;

src/testdir/test_codestyle.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def Test_source_files()
4343

4444
PerformCheck(fname, '\s$', 'trailing white space', '')
4545

46+
PerformCheck(fname, ';;\+$', 'double semicolon', '')
47+
4648
# some files don't stick to the Vim style rules
4749
if fname =~ 'iscygpty.c'
4850
continue

src/version.c

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

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
11,
737739
/**/
738740
10,
739741
/**/

src/viminfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ write_viminfo_registers(FILE *fp)
18911891
int max_kbyte;
18921892
long len;
18931893
yankreg_T *y_ptr;
1894-
yankreg_T *y_regs_p = get_y_regs();;
1894+
yankreg_T *y_regs_p = get_y_regs();
18951895

18961896
fputs(_("\n# Registers:\n"), fp);
18971897

0 commit comments

Comments
 (0)