mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.1751: #ifdef causes bad highlighting
Problem: #ifdef causes bad highlighting. Solution: Move code around. (Ozaki Kiichi, closes #2731)
This commit is contained in:
17
src/ui.c
17
src/ui.c
@@ -1854,18 +1854,15 @@ fill_input_buf(int exit_on_error UNUSED)
|
|||||||
len = 0; /* to avoid gcc warning */
|
len = 0; /* to avoid gcc warning */
|
||||||
for (try = 0; try < 100; ++try)
|
for (try = 0; try < 100; ++try)
|
||||||
{
|
{
|
||||||
# ifdef VMS
|
size_t readlen = (size_t)((INBUFLEN - inbufcount)
|
||||||
len = vms_read(
|
|
||||||
# else
|
|
||||||
len = read(read_cmd_fd,
|
|
||||||
# endif
|
|
||||||
(char *)inbuf + inbufcount, (size_t)((INBUFLEN - inbufcount)
|
|
||||||
# ifdef FEAT_MBYTE
|
# ifdef FEAT_MBYTE
|
||||||
/ input_conv.vc_factor
|
/ input_conv.vc_factor
|
||||||
# endif
|
# endif
|
||||||
));
|
);
|
||||||
# if 0
|
# ifdef VMS
|
||||||
) /* avoid syntax highlight error */
|
len = vms_read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
|
||||||
|
# else
|
||||||
|
len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
if (len > 0 || got_int)
|
if (len > 0 || got_int)
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1751,
|
||||||
/**/
|
/**/
|
||||||
1750,
|
1750,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user