From 6b91e76cfdd409e494fc2555af48037bbe286800 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 22 Jul 2021 15:44:17 +0300 Subject: Moved ctfcMath functionality to utils --- go-src/windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'go-src/windows.go') 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 ">": -- cgit v1.2.3