mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
5b437ff835
commit
2296adc823
1 changed files with 3 additions and 3 deletions
|
|
@ -36,11 +36,11 @@ impl Message {
|
||||||
return 0; // In case we can't get the width of the terminal
|
return 0; // In case we can't get the width of the terminal
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut num_lines = 0;
|
let mut lines = 0;
|
||||||
for line in self.content.lines() {
|
for line in self.content.lines() {
|
||||||
num_lines += (line.width() + 1).div_ceil(width as usize)
|
lines += (line.width() + 1).div_ceil(width as usize)
|
||||||
}
|
}
|
||||||
|
|
||||||
num_lines + NOTIFY_BORDER as usize
|
lines + NOTIFY_BORDER as usize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue