diff src/getchar.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 e7030c0c79cd
children a70f0d6686c4
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1813,9 +1813,8 @@ plain_vgetc(void)
     int c;
 
     do
-    {
 	c = safe_vgetc();
-    } while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR);
+    while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR);
 
     if (c == K_PS)
 	/* Only handle the first pasted character.  Drop the rest, since we