mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-02 12:50:16 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4636da9ee9
@ -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 {
|
|||||||
if (!CommandManager.runCommand(fullCommand)) {
|
if (!CommandManager.runCommand(fullCommand)) {
|
||||||
logger("未知指令 $fullCommand")
|
logger("未知指令 $fullCommand")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user