fix: reset cursor to start when clearing find query buffer
This commit is contained in:
parent
23e90b9592
commit
f09bbbb7a9
1 changed files with 2 additions and 1 deletions
|
|
@ -113,7 +113,8 @@ fn flush_input(self: *Self) !void {
|
|||
.case_folded => .case_folded,
|
||||
});
|
||||
} else {
|
||||
self.editor.get_primary().selection = null;
|
||||
self.editor.get_primary().cursor = self.start_cursor;
|
||||
self.editor.scroll_to(self.start_view.row);
|
||||
self.editor.init_matches_update();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue