Split ContextMenu actions
This should have no user-visible impact. For vim `.` to repeat it's important that actions are replayable. Currently editor::MoveDown *sometimes* moves the cursor down, and *sometimes* selects the next completion. For replay we need to be able to separate the two.
This commit is contained in:
parent
da16167db1
commit
56db21d54b
5 changed files with 57 additions and 58 deletions
|
@ -378,10 +378,6 @@ impl Editor {
|
|||
return;
|
||||
}
|
||||
|
||||
if amount.move_context_menu_selection(self, cx) {
|
||||
return;
|
||||
}
|
||||
|
||||
let cur_position = self.scroll_position(cx);
|
||||
let new_pos = cur_position + vec2f(0., amount.lines(self));
|
||||
self.set_scroll_position(new_pos, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue