diff 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
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2224,14 +2224,10 @@ ClearConsoleBuffer(WORD wAttribute)
     coord.Y = 0;
     if (!FillConsoleOutputCharacter(g_hConOut, ' ', NumCells,
 	    coord, &dummy))
-    {
 	return FALSE;
-    }
     if (!FillConsoleOutputAttribute(g_hConOut, wAttribute, NumCells,
 	    coord, &dummy))
-    {
 	return FALSE;
-    }
 
     return TRUE;
 }
@@ -2467,9 +2463,7 @@ RestoreConsoleBuffer(
 			cb->BufferSize,		/* dimensions of our buffer */
 			BufferCoord,		/* offset in our buffer */
 			&WriteRegion))		/* region to restore */
-	    {
 		return FALSE;
-	    }
 	}
     }