This commit is contained in:
Wez Furlong committed 2019-06-16 21:04:53 -07:00
1 parent 6beee56675
commit cf2b4896c5
2 files changed
+3 -8

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ impl Pdu {
// constrained the offsets accordingly.
unsafe {
std::ptr::copy_nonoverlapping(
buffer.as_ptr().offset(consumed as isize),
buffer.as_ptr().add(consumed),
buffer.as_mut_ptr(),
remain,
);
+2 -7
View File
@@ -104,7 +104,7 @@ impl MouseState {
})
.then(move |resp| {
if let Ok(r) = resp.as_ref() {
*selection_range.lock().unwrap() = r.selection_range.clone();
*selection_range.lock().unwrap() = r.selection_range;
*something_changed.lock().unwrap() = true;
}
Future::with_executor(gui_executor().unwrap(), move || {
@@ -262,12 +262,7 @@ impl Tab for ClientTab {
}
fn selection_range(&self) -> Option<SelectionRange> {
self.renderable
.borrow()
.selection_range
.lock()
.unwrap()
.clone()
*self.renderable.borrow().selection_range.lock().unwrap()
}
}