1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-08 18:37:07 +02:00

Always read textview input from stream ()

This commit is contained in:
JT
2021-06-25 14:17:58 +12:00
committed by GitHub
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()),
};