Skip to content

Commit

Permalink
patch 8.0.1751: #ifdef causes bad highlighting
Browse files Browse the repository at this point in the history
Problem:    #ifdef causes bad highlighting.
Solution:   Move code around. (Ozaki Kiichi, closes #2731)
  • Loading branch information
brammool committed Apr 24, 2018
1 parent 3b9474b commit 4e601e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/ui.c
Expand Up @@ -1854,18 +1854,15 @@ fill_input_buf(int exit_on_error UNUSED)
len = 0; /* to avoid gcc warning */
for (try = 0; try < 100; ++try)
{
# ifdef VMS
len = vms_read(
# else
len = read(read_cmd_fd,
# endif
(char *)inbuf + inbufcount, (size_t)((INBUFLEN - inbufcount)
size_t readlen = (size_t)((INBUFLEN - inbufcount)
# ifdef FEAT_MBYTE
/ input_conv.vc_factor
/ input_conv.vc_factor
# endif
));
# if 0
) /* avoid syntax highlight error */
);
# ifdef VMS
len = vms_read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
# else
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
# endif

if (len > 0 || got_int)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1751,
/**/
1750,
/**/
Expand Down

0 comments on commit 4e601e3

Please sign in to comment.