diff options
Diffstat (limited to 'ex/ex_bang.c')
| -rw-r--r-- | ex/ex_bang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ex/ex_bang.c b/ex/ex_bang.c index c5744708664a..08122f4173d2 100644 --- a/ex/ex_bang.c +++ b/ex/ex_bang.c @@ -174,8 +174,8 @@ ex_bang(SCR *sp, EXCMD *cmdp) if (!F_ISSET(sp, SC_VI) && !F_ISSET(sp, SC_EX_SILENT)) (void)ex_puts(sp, "!\n"); - /* Apply expandtab to the new text */ - if (O_ISSET(sp, O_EXPANDTAB)) + /* If addresses were specified, apply expandtab to the new text */ + if (cmdp->addrcnt != 0 && O_ISSET(sp, O_EXPANDTAB)) ex_retab(sp, cmdp); /* |
