You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This still happens, using the following code and skim v0.15.5:
externcrate skim;use skim::prelude::*;use std::io::Cursor;pubfnmain(){let options = SkimOptionsBuilder::default().height("50%".to_string()).multi(true).build().unwrap();let input = "aaaaa\nbbbb\nccc".to_string();// `SkimItemReader` is a helper to turn any `BufRead` into a stream of `SkimItem`// `SkimItem` was implemented for `AsRef<str>` by defaultlet item_reader = SkimItemReader::default();let items = item_reader.of_bufread(Cursor::new(input));// `run_with` would read and show items from the streamlet selected_items = Skim::run_with(&options,Some(items)).map(|out| out.selected_items).unwrap_or_else(|| Vec::new());for item in selected_items.iter(){print!("{}{}", item.output(),"\n");}}
The code was taken from the current README, however it does not compile without changing .height(Some("50%")) to .height("50%".to_string())
Running the example Rust code from the README and choosing the
bbbb
option using arrow up and enter the ouput is as follows:You can see that
bbbb
output is not shown in the default color of my terminal.This doesn't happen if option
aaaaa
is selected by just pressing enter:Screencast.2023-06-17.13.39.00.webm
The text was updated successfully, but these errors were encountered: