diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-02 00:19:06 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-02 00:19:06 +0100 |
commit | 286aacb2aa46c1fdcee5ab3908e0d01d91497e0d (patch) | |
tree | 5a5afad73c682bb3972f83cea12c99e4b7a8125e /src/nvim/ops.c | |
parent | 985bc6c6e055785e9cee22c1fd70127f82cdbffb (diff) | |
parent | b1731fe1b5d7a9b89acb6c2292b1e3e8f9f33544 (diff) | |
download | rneovim-286aacb2aa46c1fdcee5ab3908e0d01d91497e0d.tar.gz rneovim-286aacb2aa46c1fdcee5ab3908e0d01d91497e0d.tar.bz2 rneovim-286aacb2aa46c1fdcee5ab3908e0d01d91497e0d.zip |
Merge #6194 'filtering manually folded lines'
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 8bfda3c193..530193bd41 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -210,8 +210,6 @@ void op_shift(oparg_T *oap, int curs_top, int amount) } changed_lines(oap->start.lnum, 0, oap->end.lnum + 1, 0L); - /* The cursor line is not in a closed fold */ - foldOpenCursor(); if (oap->motion_type == kMTBlockWise) { curwin->w_cursor.lnum = oap->start.lnum; @@ -222,6 +220,9 @@ void op_shift(oparg_T *oap, int curs_top, int amount) } else --curwin->w_cursor.lnum; /* put cursor on last line, for ":>" */ + // The cursor line is not in a closed fold + foldOpenCursor(); + if (oap->line_count > p_report) { if (oap->op_type == OP_RSHIFT) s = (char_u *)">"; |