Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
4636da9e
Commit
4636da9e
authored
Feb 20, 2020
by
Him188
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0e6c1e68
687a773e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
mirai-console-terminal/src/main/kotlin/net/mamoe/mirai/console/MiraiConsoleTerminalUI.kt
.../kotlin/net/mamoe/mirai/console/MiraiConsoleTerminalUI.kt
+3
-1
mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt
...e/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt
+1
-0
No files found.
mirai-console-terminal/src/main/kotlin/net/mamoe/mirai/console/MiraiConsoleTerminalUI.kt
View file @
4636da9e
...
@@ -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
{
...
...
mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsole.kt
View file @
4636da9e
...
@@ -305,6 +305,7 @@ object MiraiConsole {
...
@@ -305,6 +305,7 @@ object MiraiConsole {
if
(!
CommandManager
.
runCommand
(
fullCommand
))
{
if
(!
CommandManager
.
runCommand
(
fullCommand
))
{
logger
(
"未知指令 $fullCommand"
)
logger
(
"未知指令 $fullCommand"
)
}
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment