Skip to content

Commit

Permalink
修改: Cargo.toml
Browse files Browse the repository at this point in the history
	修改:     README.md
	修改:     src/app.rs
  • Loading branch information
A4-Tacks committed Feb 19, 2023
1 parent ad8eb1c commit eb5c9d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "timg"
version = "1.0.0"
version = "1.0.1"
authors = ["A4-Tacks <[email protected]>"]
keywords = ["terminal", "image", "term"]
description = "Display image for terminal (VT100)"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Display image for terminal (VT100)
- For details, see - H and -- help

# Update Log
## v1.0.1
- Fixed bug: extra empty lines at the end
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ pub fn run(matches: ArgMatches) {
}
bg_line_buffer.clear();
fg_line_buffer.clear();
if line_num == height {
line_num += 1;
if line_num >= height {
break 'a;
}
line_num += 1;
if split_edge {
out!("{}{}{}", &clear_ansi, CR, &bg_ansi);
} else {
Expand Down

0 comments on commit eb5c9d4

Please sign in to comment.