mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
Always read textview input from stream (#3680)
This commit is contained in:
parent
19c79f0a73
commit
6ba40773bb
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ pub fn view_text_value(value: &Value) {
|
|||
.theme(&config.theme);
|
||||
|
||||
match value.anchor().and_then(get_file_path) {
|
||||
Some(file_path) => printer.input_file(file_path),
|
||||
Some(file_path) => printer.input(bat::Input::from_bytes(s.as_bytes()).name(file_path)),
|
||||
None => printer.input_from_bytes(s.as_bytes()),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue