From bb4bf23c5c6f8252d9767861413ea10ab69704c1 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 24 Dec 2020 10:21:54 +0100 Subject: [PATCH] gui: ReplaceAll -> Replace --- pkg/gui/global_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index a17e79b65..d0c357df0 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -196,7 +196,7 @@ func (gui *Gui) handleCopySelectedSideContextItemToClipboard() error { return gui.surfaceError(err) } - truncatedItemId := utils.TruncateWithEllipsis(strings.ReplaceAll(itemId, "\n", " "), 50) + truncatedItemId := utils.TruncateWithEllipsis(strings.Replace(itemId, "\n", " ", -1), 50) gui.raiseToast(fmt.Sprintf("'%s' %s", truncatedItemId, gui.Tr.LcCopiedToClipboard))