diff options
| author | Andreas Grois <andi@grois.info> | 2021-04-21 09:43:40 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2021-04-21 09:43:40 +0200 |
| commit | 93b76c0e6f6387664411a080cf0f8e8734bfb30a (patch) | |
| tree | 8d576e0eaac8e7162491ac3ad8815e4edd7884f6 | |
| parent | ff8a1ba0b616c1c625275f9b75b3ecbebfcec221 (diff) | |
Fix that separators/texts were swapped
| -rw-r--r-- | swaystatus/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaystatus/src/main.rs b/swaystatus/src/main.rs index 664df52..48229ef 100644 --- a/swaystatus/src/main.rs +++ b/swaystatus/src/main.rs @@ -166,7 +166,7 @@ fn handle_message_from_element(texts : &mut Vec<String>, plugin : &str, element_ fn print_texts(texts : &[String], settings : &config::SwaystatusMainConfig) { //Once we do more than just printing, we might want a more advanced code here... let separators = std::iter::once("").chain(std::iter::repeat(&settings.separator[..])); - for (separator, text) in texts.iter().zip(separators) { + for (separator, text) in separators.zip(texts) { print!("{}{}",separator,text); } println!(); //Previosly there was an explicit flush here, but printnl should do that for us. |
