Fix printing unicode

pull/480/head
Arijit Basu 2 years ago
parent 071195fd61
commit 3da8140bb1
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -62,7 +62,7 @@ compatibility.
- Added key binding `f` `backspace` to remove the last filter.
- Search mode now defaults to regex search.
- Added a new message `SetInputPrompt` to set the input prompt dynamically.
- Added new node properties (available via teh Lua API):
- Added new node properties (available via the Lua API):
- `created`
- `last_modified`
- Added support for sorting with timestamp using the new sorters:

@ -58,7 +58,11 @@ fn main() {
match runner::from_cli(cli).and_then(|a| a.run()) {
Ok(Some(mut out)) => {
if write0 {
out = out.trim_end().replace('\n', "\0");
out = out
.trim_end()
.chars()
.map(|c| if c == '\n' { '\0' } else { c })
.collect();
}
print!("{}", out);
}

Loading…
Cancel
Save