mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
to merge
This commit is contained in:
parent
3844ef3311
commit
83d4375de3
@ -482,7 +482,9 @@ object MiraiConsoleTerminalUI : MiraiConsoleUI {
|
||||
val width = terminal.terminalSize.columns - 6
|
||||
var x = string
|
||||
while (true) {
|
||||
if (x == "") break
|
||||
if (x == "") {
|
||||
break
|
||||
}
|
||||
val toWrite = if (x.actualLength() > width) {
|
||||
val index = x.getSubStringIndexByActualLength(width)
|
||||
x.substring(0, index).also {
|
||||
|
@ -300,7 +300,7 @@ object MiraiConsole {
|
||||
if (allDown) {
|
||||
return
|
||||
}
|
||||
var fullCommand = commandChannel.poll()
|
||||
var fullCommand = commandChannel.take(1)[0]
|
||||
if (fullCommand != null) {
|
||||
if (!fullCommand.startsWith("/")) {
|
||||
fullCommand = "/$fullCommand"
|
||||
|
Loading…
Reference in New Issue
Block a user