diff options
Diffstat (limited to 'ex/ex_shift.c')
| -rw-r--r-- | ex/ex_shift.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ex/ex_shift.c b/ex/ex_shift.c index 97c7840a9a02..f7190b2e8688 100644 --- a/ex/ex_shift.c +++ b/ex/ex_shift.c @@ -79,8 +79,12 @@ shift(SCR *sp, EXCMD *cmdp, enum which rl) return (0); } - /* Copy the lines being shifted into the unnamed buffer. */ - if (cut(sp, NULL, &cmdp->addr1, &cmdp->addr2, CUT_LINEMODE)) + /* + * When not doing re-expand tabs, copy the lines being shifted into + * the unnamed buffer. + */ + if (rl != RETAB && + cut(sp, NULL, &cmdp->addr1, &cmdp->addr2, CUT_LINEMODE)) return (1); /* |
