Mercurial > vim
comparison src/ui.c @ 13758:63679d671ced v8.0.1751
patch 8.0.1751: #ifdef causes bad highlighting
commit https://github.com/vim/vim/commit/4e601e3c82899b3a8334856397946efeaa007f29
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 13:29:51 2018 +0200
patch 8.0.1751: #ifdef causes bad highlighting
Problem: #ifdef causes bad highlighting.
Solution: Move code around. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2731)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 13:30:07 +0200 |
parents | a62b0bbc8834 |
children | ef6de4674811 |
comparison
equal
deleted
inserted
replaced
13757:9e13085c80f6 | 13758:63679d671ced |
---|---|
1852 # endif | 1852 # endif |
1853 | 1853 |
1854 len = 0; /* to avoid gcc warning */ | 1854 len = 0; /* to avoid gcc warning */ |
1855 for (try = 0; try < 100; ++try) | 1855 for (try = 0; try < 100; ++try) |
1856 { | 1856 { |
1857 size_t readlen = (size_t)((INBUFLEN - inbufcount) | |
1858 # ifdef FEAT_MBYTE | |
1859 / input_conv.vc_factor | |
1860 # endif | |
1861 ); | |
1857 # ifdef VMS | 1862 # ifdef VMS |
1858 len = vms_read( | 1863 len = vms_read(read_cmd_fd, (char *)inbuf + inbufcount, readlen); |
1859 # else | 1864 # else |
1860 len = read(read_cmd_fd, | 1865 len = read(read_cmd_fd, (char *)inbuf + inbufcount, readlen); |
1861 # endif | |
1862 (char *)inbuf + inbufcount, (size_t)((INBUFLEN - inbufcount) | |
1863 # ifdef FEAT_MBYTE | |
1864 / input_conv.vc_factor | |
1865 # endif | |
1866 )); | |
1867 # if 0 | |
1868 ) /* avoid syntax highlight error */ | |
1869 # endif | 1866 # endif |
1870 | 1867 |
1871 if (len > 0 || got_int) | 1868 if (len > 0 || got_int) |
1872 break; | 1869 break; |
1873 /* | 1870 /* |