ops.c: eliminate static variable y_current

This variable isn't stateful, and should be passed around instead.

Helped-By: Scott Prager <splinterofchaos@gmail.com>
Helped-By: Michael Reed <m.reed@mykolab.com>
This commit is contained in:
Björn Linse
2015-04-13 15:05:40 +02:00
parent c1a3d289d6
commit 96e9d261cf
4 changed files with 223 additions and 264 deletions

View File

@@ -6487,7 +6487,7 @@ static void ex_operators(exarg_T *eap)
case CMD_yank:
oa.op_type = OP_YANK;
(void)op_yank(&oa, FALSE, TRUE);
(void)op_yank(&oa, true);
break;
default: /* CMD_rshift or CMD_lshift */