Skip to content

Commit 4e601e3

Browse files
committed
patch 8.0.1751: #ifdef causes bad highlighting
Problem: #ifdef causes bad highlighting. Solution: Move code around. (Ozaki Kiichi, closes #2731)
1 parent 3b9474b commit 4e601e3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/ui.c

+7-10
Original file line numberDiff line numberDiff line change
@@ -1854,18 +1854,15 @@ fill_input_buf(int exit_on_error UNUSED)
18541854
len = 0; /* to avoid gcc warning */
18551855
for (try = 0; try < 100; ++try)
18561856
{
1857-
# ifdef VMS
1858-
len = vms_read(
1859-
# else
1860-
len = read(read_cmd_fd,
1861-
# endif
1862-
(char *)inbuf + inbufcount, (size_t)((INBUFLEN - inbufcount)
1857+
size_t readlen = (size_t)((INBUFLEN - inbufcount)
18631858
# ifdef FEAT_MBYTE
1864-
/ input_conv.vc_factor
1859+
/ input_conv.vc_factor
18651860
# endif
1866-
));
1867-
# if 0
1868-
) /* avoid syntax highlight error */
1861+
);
1862+
# ifdef VMS
1863+
len = vms_read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
1864+
# else
1865+
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
18691866
# endif
18701867

18711868
if (len > 0 || got_int)

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1751,
764766
/**/
765767
1750,
766768
/**/

0 commit comments

Comments
 (0)