瀏覽代碼

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);