File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -166,11 +166,12 @@ pub fn view_area() -> Area {
166166 area
167167}
168168
169- pub fn run_app ( skin : MadSkin , nip : String ) -> Result < ( ) , Error > {
169+ pub async fn run_app ( skin : MadSkin , nip : String ) -> Result < ( ) , Error > {
170170 let mut w = stdout ( ) ; // we could also have used stderr
171171 queue ! ( w, EnterAlternateScreen ) ?;
172172 terminal:: enable_raw_mode ( ) ?;
173173 queue ! ( w, Hide ) ?; // hiding the cursor
174+ // get nip here
174175 let mut view = MadView :: from ( MD . to_owned ( ) , view_area ( ) , skin) ;
175176 loop {
176177 view. write_on ( & mut w) ?;
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
232232
233233 if args. serve {
234234 //MUST be true
235+ tokio:: join!( run_app( make_skin( ) , String :: from( "01" ) ) ) ;
235236 tokio:: join!( serve( using_serve_dir_with_assets_fallback( ) , args. port) , ) ;
236237 }
237238
You can’t perform that action at this time.
0 commit comments