vim-patch:8.0.0066

Problem:    when calling an operator function when 'linebreak' is set, it is
            internally reset before calling the operator function.
Solution:   Restore 'linebreak' before calling op_function(). (Christian
            Brabandt)

4a08b0dc4d
This commit is contained in:
raichoo
2017-03-11 12:00:36 +01:00
parent 88dd2e8a08
commit a4f20db08c
2 changed files with 46 additions and 4 deletions

View File

@@ -1914,6 +1914,9 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
break;
case OP_FUNCTION:
// Restore linebreak, so that when the user edits it looks as
// before.
curwin->w_p_lbr = lbr_saved;
op_function(oap); /* call 'operatorfunc' */
break;