Mercurial > vim
comparison src/os_win32.c @ 32395:2ed95122d59c v9.0.1529
patch 9.0.1529: code style test doesn't check for space after "if"
Commit: https://github.com/vim/vim/commit/c9471b18728b1b37c04845ca2bc59fc981308b2d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 15:00:00 2023 +0100
patch 9.0.1529: code style test doesn't check for space after "if"
Problem: Code style test doesn't check for space after "if".
Solution: Add a test for space.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 16:15:05 +0200 |
parents | 97255d909654 |
children | c0b3e3c7786c |
comparison
equal
deleted
inserted
replaced
32394:0db2ebbe7711 | 32395:2ed95122d59c |
---|---|
6861 if (length && length <= unibuflen) | 6861 if (length && length <= unibuflen) |
6862 break; | 6862 break; |
6863 vim_free(unicodebuf); | 6863 vim_free(unicodebuf); |
6864 unicodebuf = length ? LALLOC_MULT(WCHAR, length) : NULL; | 6864 unicodebuf = length ? LALLOC_MULT(WCHAR, length) : NULL; |
6865 unibuflen = unibuflen ? 0 : length; | 6865 unibuflen = unibuflen ? 0 : length; |
6866 } while(1); | 6866 } while (TRUE); |
6867 cells = mb_string2cells(pchBuf, cbToWrite); | 6867 cells = mb_string2cells(pchBuf, cbToWrite); |
6868 } | 6868 } |
6869 else // cbToWrite == 1 && *pchBuf == ' ' && enc_utf8 | 6869 else // cbToWrite == 1 && *pchBuf == ' ' && enc_utf8 |
6870 { | 6870 { |
6871 if (utf8usingbuf != &utf8spbuf) | 6871 if (utf8usingbuf != &utf8spbuf) |