Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0116c5 commit e0b1c9aCopy full SHA for e0b1c9a
1 file changed
src/main.rs
@@ -51,13 +51,7 @@ impl ZellijPlugin for State {
51
// assets/multitask_layout.kdl
52
self.layout = match config.get("layout") {
53
Some(s) => {
54
- match std::fs::read_to_string(PathBuf::from("/host").join(s)) {
55
- Ok(str) => str,
56
- Err(e) => {
57
- eprintln!("{}", e);
58
- String::from(include_str!("assets/multitask_layout.kdl"))
59
- }
60
+ s.to_string()
61
},
62
_ => String::from(include_str!("assets/multitask_layout.kdl"))
63
};
0 commit comments