diff options
Diffstat (limited to 'doPlayback.go')
| -rw-r--r-- | doPlayback.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doPlayback.go b/doPlayback.go index 0a3f44b..5e9ab0f 100644 --- a/doPlayback.go +++ b/doPlayback.go @@ -95,7 +95,7 @@ func listEntries(chat *chatpb.Chat) { contentPreview = strings.ReplaceAll(contentPreview, "\n", " ") authorAndTime := fmt.Sprintf("[%s] (%s)", author, formattedTime) - + availableWidth := width - maxAuthorAndTimeLen - 1 // -1 for a space if len(contentPreview) > availableWidth { contentPreview = contentPreview[:availableWidth-3] + "..." @@ -122,4 +122,4 @@ func listEntries(chat *chatpb.Chat) { } } fmt.Println("-------------------------------------------------") -}
\ No newline at end of file +} |
