diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-01-16 19:03:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-01-16 19:03:13 +0000 |
commit | 21b17e7741cc08ca7f0e7606b73373d5b37e5ede (patch) | |
tree | d28153e160c5ad83e4004924ed56b44cbf89ddc6 /src/ops.c | |
parent | f33943efe7d82e61b970a45e2ca6716eebdbb659 (diff) | |
download | vim-git-21b17e7741cc08ca7f0e7606b73373d5b37e5ede.tar.gz |
updated for version 7.1-231v7.1.231
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -258,7 +258,7 @@ op_shift(oap, curs_top, amount) if (first_char != '#' || !preprocs_left()) #endif { - shift_line(oap->op_type == OP_LSHIFT, p_sr, amount); + shift_line(oap->op_type == OP_LSHIFT, p_sr, amount, FALSE); } ++curwin->w_cursor.lnum; } @@ -321,10 +321,11 @@ op_shift(oap, curs_top, amount) * leaves cursor on first blank in the line */ void -shift_line(left, round, amount) +shift_line(left, round, amount, call_changed_bytes) int left; int round; int amount; + int call_changed_bytes; /* call changed_bytes() */ { int count; int i, j; @@ -363,10 +364,10 @@ shift_line(left, round, amount) /* Set new indent */ #ifdef FEAT_VREPLACE if (State & VREPLACE_FLAG) - change_indent(INDENT_SET, count, FALSE, NUL); + change_indent(INDENT_SET, count, FALSE, NUL, call_changed_bytes); else #endif - (void)set_indent(count, SIN_CHANGED); + (void)set_indent(count, call_changed_bytes ? SIN_CHANGED : 0); } #if defined(FEAT_VISUALEXTRA) || defined(PROTO) |