Mercurial > vim
comparison src/os_win32.c @ 16162:cd5c83115ec6 v8.1.1086
patch 8.1.1086: too many curly braces
commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 18:47:01 2019 +0100
patch 8.1.1086: too many curly braces
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 19:00:07 +0100 |
parents | 602f1888a230 |
children | 1eaaa82ececf |
comparison
equal
deleted
inserted
replaced
16161:75fa84e2461b | 16162:cd5c83115ec6 |
---|---|
2222 NumCells = csbi.dwSize.X * csbi.dwSize.Y; | 2222 NumCells = csbi.dwSize.X * csbi.dwSize.Y; |
2223 coord.X = 0; | 2223 coord.X = 0; |
2224 coord.Y = 0; | 2224 coord.Y = 0; |
2225 if (!FillConsoleOutputCharacter(g_hConOut, ' ', NumCells, | 2225 if (!FillConsoleOutputCharacter(g_hConOut, ' ', NumCells, |
2226 coord, &dummy)) | 2226 coord, &dummy)) |
2227 { | |
2228 return FALSE; | 2227 return FALSE; |
2229 } | |
2230 if (!FillConsoleOutputAttribute(g_hConOut, wAttribute, NumCells, | 2228 if (!FillConsoleOutputAttribute(g_hConOut, wAttribute, NumCells, |
2231 coord, &dummy)) | 2229 coord, &dummy)) |
2232 { | |
2233 return FALSE; | 2230 return FALSE; |
2234 } | |
2235 | 2231 |
2236 return TRUE; | 2232 return TRUE; |
2237 } | 2233 } |
2238 | 2234 |
2239 /* | 2235 /* |
2465 if (!WriteConsoleOutputW(g_hConOut, /* output handle */ | 2461 if (!WriteConsoleOutputW(g_hConOut, /* output handle */ |
2466 cb->Buffer, /* our buffer */ | 2462 cb->Buffer, /* our buffer */ |
2467 cb->BufferSize, /* dimensions of our buffer */ | 2463 cb->BufferSize, /* dimensions of our buffer */ |
2468 BufferCoord, /* offset in our buffer */ | 2464 BufferCoord, /* offset in our buffer */ |
2469 &WriteRegion)) /* region to restore */ | 2465 &WriteRegion)) /* region to restore */ |
2470 { | |
2471 return FALSE; | 2466 return FALSE; |
2472 } | |
2473 } | 2467 } |
2474 } | 2468 } |
2475 | 2469 |
2476 return TRUE; | 2470 return TRUE; |
2477 } | 2471 } |