This bug seems to be caused by pushing an operator (i.e. `d`) followed by a repeat (i.e. `.`) so the recording includes the push operator and the repeat. When this is repeated (i.e. `.`) it causes an infinite loop. This change fixes this bug by pushing a ClearOperator action if there is an ongoing recording when repeat is called. Release Notes: - Fixed bug where pressing `d . .` in Vim mode would freeze the editor. --------- Co-authored-by: dino <dinojoaocosta@gmail.com>
9 lines
246 B
JSON
9 lines
246 B
JSON
{"Put":{"state":"ˇthe quick brown\nfox jumps over\nthe lazy dog"}}
|
|
{"Key":"d"}
|
|
{"Key":"d"}
|
|
{"Get":{"state":"ˇfox jumps over\nthe lazy dog","mode":"Normal"}}
|
|
{"Key":"d"}
|
|
{"Key":"."}
|
|
{"Key":"."}
|
|
{"Get":{"state":"ˇthe lazy dog","mode":"Normal"}}
|