summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-08-08 18:01:05 +0200
committerBram Moolenaar <Bram@vim.org>2012-08-08 18:01:05 +0200
commit14f247414733b9dafb50e59320f75e8b56ac6ec6 (patch)
tree3444e7c3c3e666121e317b50e5f7cdd9718dc5f1 /src/ops.c
parentb02612b6411659b6385aea44fe8abb5a2e16d4d7 (diff)
downloadvim-git-14f247414733b9dafb50e59320f75e8b56ac6ec6.tar.gz
updated for version 7.3.629v7.3.629
Problem: There is no way to make 'shiftwidth' follow 'tabstop'. Solution: When 'shiftwidth' is zero use the value of 'tabstop'. (Christian Brabandt)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ops.c b/src/ops.c
index c60f3375e..561046d37 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -332,7 +332,7 @@ shift_line(left, round, amount, call_changed_bytes)
{
int count;
int i, j;
- int p_sw = (int)curbuf->b_p_sw;
+ int p_sw = (int)get_sw_value();
count = get_indent(); /* get current indent */
@@ -388,7 +388,7 @@ shift_block(oap, amount)
int total;
char_u *newp, *oldp;
int oldcol = curwin->w_cursor.col;
- int p_sw = (int)curbuf->b_p_sw;
+ int p_sw = (int)get_sw_value();
int p_ts = (int)curbuf->b_p_ts;
struct block_def bd;
int incr;