diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-24 13:29:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-24 13:29:51 +0200 |
commit | 4e601e3c82899b3a8334856397946efeaa007f29 (patch) | |
tree | 0d7cfcb8ab399db03ee112a92c928d85954b1c72 /src/ui.c | |
parent | 3b9474b4ad4d85b5396f7f641b436f193dc9d486 (diff) | |
download | vim-git-4e601e3c82899b3a8334856397946efeaa007f29.tar.gz |
patch 8.0.1751: #ifdef causes bad highlightingv8.0.1751
Problem: #ifdef causes bad highlighting.
Solution: Move code around. (Ozaki Kiichi, closes #2731)
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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) |