From 3659e511633993ff0807ad34dde5057d9009c912 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 18 Sep 2019 19:18:58 +1200 Subject: [PATCH] Fix origin in binaryview --- src/plugins/binaryview.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/binaryview.rs b/src/plugins/binaryview.rs index 3b92177374..895ec97fe2 100644 --- a/src/plugins/binaryview.rs +++ b/src/plugins/binaryview.rs @@ -24,7 +24,7 @@ impl Plugin for BinaryView { let value_origin = v.origin(); match v.item { 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")); } _ => {}