Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
1efa620f
Commit
1efa620f
authored
May 16, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] fix search bugs
parent
74acf669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
session.go
pkg/handler/session.go
+1
-1
No files found.
pkg/handler/session.go
View file @
1efa620f
...
@@ -185,7 +185,7 @@ func (h *interactiveHandler) Dispatch(ctx cctx.Context) {
...
@@ -185,7 +185,7 @@ func (h *interactiveHandler) Dispatch(ctx cctx.Context) {
case
strings
.
Index
(
line
,
"/"
)
==
0
:
case
strings
.
Index
(
line
,
"/"
)
==
0
:
searchWord
:=
strings
.
TrimSpace
(
line
[
1
:
])
searchWord
:=
strings
.
TrimSpace
(
line
[
1
:
])
assets
:=
h
.
searchAsset
(
searchWord
)
assets
:=
h
.
searchAsset
(
searchWord
)
h
.
displayAssets
(
assets
)
h
.
displayAssets
OrProxy
(
assets
)
case
strings
.
Index
(
line
,
"g"
)
==
0
:
case
strings
.
Index
(
line
,
"g"
)
==
0
:
searchWord
:=
strings
.
TrimSpace
(
strings
.
TrimPrefix
(
line
,
"g"
))
searchWord
:=
strings
.
TrimSpace
(
strings
.
TrimPrefix
(
line
,
"g"
))
if
num
,
err
:=
strconv
.
Atoi
(
searchWord
);
err
==
nil
{
if
num
,
err
:=
strconv
.
Atoi
(
searchWord
);
err
==
nil
{
...
...
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