mirror of
https://github.com/nushell/nushell
synced 2025-01-13 13:49:21 +00:00
Fix origin in binaryview
This commit is contained in:
parent
72e6222992
commit
3659e51163
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue