Skip to content

Commit eb5c9d4

Browse files
committed
修改: Cargo.toml
修改: README.md 修改: src/app.rs
1 parent ad8eb1c commit eb5c9d4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "timg"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
authors = ["A4-Tacks <wdsjxhno1001@163.com>"]
55
keywords = ["terminal", "image", "term"]
66
description = "Display image for terminal (VT100)"

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Display image for terminal (VT100)
22
- For details, see - H and -- help
3+
4+
# Update Log
5+
## v1.0.1
6+
- Fixed bug: extra empty lines at the end

src/app.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ pub fn run(matches: ArgMatches) {
285285
}
286286
bg_line_buffer.clear();
287287
fg_line_buffer.clear();
288-
if line_num == height {
288+
line_num += 1;
289+
if line_num >= height {
289290
break 'a;
290291
}
291-
line_num += 1;
292292
if split_edge {
293293
out!("{}{}{}", &clear_ansi, CR, &bg_ansi);
294294
} else {

0 commit comments

Comments
 (0)