Merge remote-tracking branch 'origin/master'

This commit is contained in:
Him188 2020-02-20 23:09:44 +08:00
commit 4636da9ee9
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -305,6 +305,7 @@ object MiraiConsole {
if (!CommandManager.runCommand(fullCommand)) { if (!CommandManager.runCommand(fullCommand)) {
logger("未知指令 $fullCommand") logger("未知指令 $fullCommand")
} }
} }
} }
} }