fix bugs
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ disp()
|
||||
local _c=${message:_i:1}
|
||||
_i=$(( _i + 1 ))
|
||||
line+=$_c
|
||||
(( line_vis++ ))
|
||||
(( ++line_vis ))
|
||||
[[ $_c == ' ' ]] && last_space=${#line}
|
||||
if (( line_vis > width )); then
|
||||
if (( last_space > 0 )); then
|
||||
|
||||
Reference in New Issue
Block a user