File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,12 @@ impl<'a> WatchState<'a> {
56
56
"\n Checking the exercise `{}`. Please wait…" ,
57
57
self . app_state. current_exercise( ) . name,
58
58
) ?;
59
+
59
60
let success = self
60
61
. app_state
61
62
. current_exercise ( )
62
63
. run_exercise ( Some ( & mut self . output ) , self . app_state . cmd_runner ( ) ) ?;
64
+ self . output . push ( b'\n' ) ;
63
65
if success {
64
66
self . done_status =
65
67
if let Some ( solution_path) = self . app_state . current_solution_path ( ) ? {
@@ -121,11 +123,9 @@ impl<'a> WatchState<'a> {
121
123
pub fn render ( & mut self ) -> Result < ( ) > {
122
124
// Prevent having the first line shifted if clearing wasn't successful.
123
125
self . writer . write_all ( b"\n " ) ?;
124
-
125
126
clear_terminal ( & mut self . writer ) ?;
126
127
127
128
self . writer . write_all ( & self . output ) ?;
128
- self . writer . write_all ( b"\n " ) ?;
129
129
130
130
if self . show_hint {
131
131
writeln ! (
You can’t perform that action at this time.
0 commit comments