Mercurial > vim
comparison src/normal.c @ 20754:e6a5a5ef4034 v8.2.0929
patch 8.2.0929: v:register is not cleared after an operator was executed
Commit: https://github.com/vim/vim/commit/cc613031b96f1cfa5a184253e745c26f1def9be4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 7 21:31:18 2020 +0200
patch 8.2.0929: v:register is not cleared after an operator was executed
Problem: v:register is not cleared after an operator was executed.
Solution: Clear v:register after finishing an operator (Andy Massimino,
closes #5305)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jun 2020 21:45:04 +0200 |
parents | 70d561931721 |
children | 5324acb43fea |
comparison
equal
deleted
inserted
replaced
20753:661eb972cb22 | 20754:e6a5a5ef4034 |
---|---|
1179 */ | 1179 */ |
1180 normal_end: | 1180 normal_end: |
1181 | 1181 |
1182 msg_nowait = FALSE; | 1182 msg_nowait = FALSE; |
1183 | 1183 |
1184 #ifdef FEAT_EVAL | |
1185 if (finish_op) | |
1186 reset_reg_var(); | |
1187 #endif | |
1188 | |
1184 // Reset finish_op, in case it was set | 1189 // Reset finish_op, in case it was set |
1185 #ifdef CURSOR_SHAPE | 1190 #ifdef CURSOR_SHAPE |
1186 c = finish_op; | 1191 c = finish_op; |
1187 #endif | 1192 #endif |
1188 finish_op = FALSE; | 1193 finish_op = FALSE; |