mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
dea928b00c
Fixing the "r" action just involved adapting `normal_replace` to replace multiple characters. Fixing the "shift-r" command was less straightforward. The bindings for `vim::BeforeNormal` in replace mode were being overwritten and several other steps required for action repetition were not performed. Finally, the cursor adjustment after re-entering normal mode was duplicated (`vim::BeforeNormal` was now triggered correctly) so I removed the special case for replace mode. Release Notes: - Fixed vim "r" action to accept a count argument - Fixed vim "shift-r" action to accept a count argument and allow repetition --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
15 lines
298 B
JSON
15 lines
298 B
JSON
{"Put":{"state":"ˇhello\n"}}
|
|
{"Key":"3"}
|
|
{"Key":"shift-r"}
|
|
{"Key":"-"}
|
|
{"Key":"escape"}
|
|
{"Get":{"state":"--ˇ-lo\n","mode":"Normal"}}
|
|
{"Put":{"state":"ˇhello\n"}}
|
|
{"Key":"3"}
|
|
{"Key":"shift-r"}
|
|
{"Key":"a"}
|
|
{"Key":"b"}
|
|
{"Key":"c"}
|
|
{"Key":"escape"}
|
|
{"Get":{"state":"abcabcabˇc\n","mode":"Normal"}}
|