Commit 4636da9e authored by Him188's avatar Him188

Merge remote-tracking branch 'origin/master'

parents 0e6c1e68 687a773e
...@@ -482,7 +482,9 @@ object MiraiConsoleTerminalUI : MiraiConsoleUI { ...@@ -482,7 +482,9 @@ object MiraiConsoleTerminalUI : MiraiConsoleUI {
val width = terminal.terminalSize.columns - 6 val width = terminal.terminalSize.columns - 6
var x = string var x = string
while (true) { while (true) {
if (x == "") break if (x == "") {
break
}
val toWrite = if (x.actualLength() > width) { val toWrite = if (x.actualLength() > width) {
val index = x.getSubStringIndexByActualLength(width) val index = x.getSubStringIndexByActualLength(width)
x.substring(0, index).also { x.substring(0, index).also {
......
...@@ -305,6 +305,7 @@ object MiraiConsole { ...@@ -305,6 +305,7 @@ object MiraiConsole {
if (!CommandManager.runCommand(fullCommand)) { if (!CommandManager.runCommand(fullCommand)) {
logger("未知指令 $fullCommand") logger("未知指令 $fullCommand")
} }
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment