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)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 3d38d2c..52eda33 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1029,9 +1029,8 @@
/* Get a character. Ignore K_IGNORE and K_NOP, they should not do
* anything, such as stop completion. */
do
- {
c = safe_vgetc();
- } while (c == K_IGNORE || c == K_NOP);
+ while (c == K_IGNORE || c == K_NOP);
if (KeyTyped)
{
@@ -2833,9 +2832,8 @@
if (*p == TAB)
{
do
- {
msg_putchar(' ');
- } while (++vcol % 8);
+ while (++vcol % 8);
++p;
}
else
@@ -2908,9 +2906,8 @@
{
/* Don't use chartabsize(), 'ts' can be different */
do
- {
msg_putchar(' ');
- } while (++vcol % 8);
+ while (++vcol % 8);
}
else
{