Fix origin in binaryview

This commit is contained in:
Jonathan Turner 2019-09-18 19:18:58 +12:00
parent 72e6222992
commit 3659e51163

View File

@ -24,7 +24,7 @@ impl Plugin for BinaryView {
let value_origin = v.origin(); let value_origin = v.origin();
match v.item { match v.item {
Value::Primitive(Primitive::Binary(b)) => { Value::Primitive(Primitive::Binary(b)) => {
let source = value_origin.and_then(|x| call_info.source_map.get(&x)); let source = call_info.source_map.get(&value_origin);
let _ = view_binary(&b, source, call_info.args.has("lores")); let _ = view_binary(&b, source, call_info.args.has("lores"));
} }
_ => {} _ => {}