summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
commitabab0b0fdd6535969447b03a4fffc1947918cf6c (patch)
tree2d43537a5dce8433ef2b2a37684c9e069392c592 /src/ex_getln.c
parentbd9bf266fccbf7b7f09e476e09b61f0133e914db (diff)
downloadvim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 3d38d2c74..52eda33c7 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1029,9 +1029,8 @@ getcmdline_int(
/* 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 @@ redraw:
if (*p == TAB)
{
do
- {
msg_putchar(' ');
- } while (++vcol % 8);
+ while (++vcol % 8);
++p;
}
else
@@ -2908,9 +2906,8 @@ redraw:
{
/* Don't use chartabsize(), 'ts' can be different */
do
- {
msg_putchar(' ');
- } while (++vcol % 8);
+ while (++vcol % 8);
}
else
{