diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-22 15:44:17 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-22 15:44:17 +0300 |
| commit | 6b91e76cfdd409e494fc2555af48037bbe286800 (patch) | |
| tree | 2a0975d12900b78a8b4b550f43c73261b2a000ba /go-src/windows.go | |
| parent | 8c758581a466f640201d044bf18a95882e1c86c3 (diff) | |
| download | ctfc-6b91e76cfdd409e494fc2555af48037bbe286800.tar ctfc-6b91e76cfdd409e494fc2555af48037bbe286800.tar.gz ctfc-6b91e76cfdd409e494fc2555af48037bbe286800.zip | |
Moved ctfcMath functionality to utils
Diffstat (limited to 'go-src/windows.go')
| -rw-r--r-- | go-src/windows.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/go-src/windows.go b/go-src/windows.go index afc4e77..70da48c 100644 --- a/go-src/windows.go +++ b/go-src/windows.go @@ -5,7 +5,6 @@ import ( "strings" "gitlab.com/Syndamia/ctfc/go-src/csi" - ctfcmath "gitlab.com/Syndamia/ctfc/go-src/ctfcMath" "gitlab.com/Syndamia/ctfc/go-src/ui" "gitlab.com/Syndamia/ctfc/go-src/utils" ) @@ -115,7 +114,7 @@ func chatsWindow(values ...string) { // If user input is number, navigate to chat of given number, else show error chatI, err := strconv.Atoi(input) if chatI >= 0 && chatI <= len(allChats) && err == nil { - defer chatWindow(strings.Split(allChats[ctfcmath.MaxInt(len(allChats)-pageSize*len(values[0]), 0)+chatI-1], " : ")[0]) + defer chatWindow(strings.Split(allChats[utils.MaxInt(len(allChats)-pageSize*len(values[0]), 0)+chatI-1], " : ")[0]) } else { switch input { case ">": |
