소스 검색

Flush crlf

Serj Kalichev 9 년 전
부모
커밋
021a965300
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      tinyrl/tinyrl.c

+ 2 - 1
tinyrl/tinyrl.c

@@ -745,6 +745,7 @@ void tinyrl_multi_crlf(const tinyrl_t * this)
 	tinyrl_internal_position(this, this->prompt_len + line_len,
 		- (line_len - count), this->last_width);
 	tinyrl_crlf(this);
+	tinyrl_vt100_oflush(this->term);
 }
 
 /*----------------------------------------------------------------------- */
@@ -794,7 +795,7 @@ void tinyrl_redisplay(tinyrl_t * this)
 	}
 
 	/* Update the display */
-	(void)tinyrl_vt100_oflush(this->term);
+	tinyrl_vt100_oflush(this->term);
 
 	/* Save the last line buffer */
 	lub_string_free(this->last_buffer);