diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2020-12-24 10:21:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 10:21:54 +0100 |
commit | bb4bf23c5c6f8252d9767861413ea10ab69704c1 (patch) | |
tree | d6e20ef204ce799207af6dc665b21dfe52324a62 | |
parent | 106fce26b504d875384d5cae08e9e36d66b29337 (diff) |
gui: ReplaceAll -> Replace
-rw-r--r-- | pkg/gui/global_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |