summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
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 3d38d2c742..52eda33c73 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
{