mirror of
https://github.com/nushell/nushell.git
synced 2025-02-22 13:31:34 +01:00
Always read textview input from stream (#3680)
This commit is contained in:
parent
19c79f0a73
commit
6ba40773bb
@ -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 New Issue
Block a user