mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-21 21:45:04 +03:00
Fix panic when resizing
The selection might have a beginning or end that is outside the bounds after a resize and cause a panic on subsequent draws. Easy solution is to just clear the selection on resize.
This commit is contained in:
1 parent
5009566ea5
commit
471237d2ce
1 file changed
+1
@@ -194,6 +194,7 @@ pub struct Processor<N> {
|
||||
impl<N> OnResize for Processor<N> {
|
||||
fn on_resize(&mut self, size: &SizeInfo) {
|
||||
self.size_info = size.to_owned();
|
||||
self.selection = None;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user