forked from extern/nushell
Fix origin in binaryview
This commit is contained in:
parent
72e6222992
commit
3659e51163
@ -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"));
|
||||
}
|
||||
_ => {}
|
||||
|
Loading…
Reference in New Issue
Block a user