Skip to content

Commit 6e32f61

Browse files
committed
patch 8.0.1056: cannot build with +diff but without +multi_byte
Problem: Cannot build with the diff feature but without the mutli-byte feature. Solution: Remove #ifdefs. (John Marriott)
1 parent 11aa62f commit 6e32f61

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/diff.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,7 @@ diff_equal_char(char_u *p1, char_u *p2, int *len)
17021702
diff_cmp(char_u *s1, char_u *s2)
17031703
{
17041704
char_u *p1, *p2;
1705-
#ifdef FEAT_MBYTE
17061705
int l;
1707-
#endif
17081706

17091707
if ((diff_flags & (DIFF_ICASE | DIFF_IWHITE)) == 0)
17101708
return STRCMP(s1, s2);
@@ -1983,10 +1981,8 @@ diff_find_change(
19831981
int idx;
19841982
int off;
19851983
int added = TRUE;
1986-
#ifdef FEAT_MBYTE
19871984
char_u *p1, *p2;
19881985
int l;
1989-
#endif
19901986

19911987
/* Make a copy of the line, the next ml_get() will invalidate it. */
19921988
line_org = vim_strsave(ml_get_buf(wp->w_buffer, lnum, FALSE));

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1056,
772774
/**/
773775
1055,
774776
/**/

0 commit comments

Comments
 (0)