fix(command_palette): let pageup move all the way to the top
This commit is contained in:
parent
7a8191c139
commit
49b701c9af
1 changed files with 3 additions and 1 deletions
|
@ -531,7 +531,9 @@ const cmds = struct {
|
||||||
|
|
||||||
pub fn command_palette_menu_pageup(self: *Self, _: Ctx) Result {
|
pub fn command_palette_menu_pageup(self: *Self, _: Ctx) Result {
|
||||||
if (self.view_pos > self.view_rows)
|
if (self.view_pos > self.view_rows)
|
||||||
self.view_pos -= self.view_rows;
|
self.view_pos -= self.view_rows
|
||||||
|
else
|
||||||
|
self.view_pos = 0;
|
||||||
try self.start_query();
|
try self.start_query();
|
||||||
self.menu.select_first();
|
self.menu.select_first();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue