diff options
| author | Castor Regex <[email protected]> | 2025-08-25 10:15:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-25 10:15:39 -0500 |
| commit | 0b2ec9ce15cf17f12c6457396a9579d943115d67 (patch) | |
| tree | 1f64f1f424496a930ee8fa2698fdecc19b36005e /doPlayback.go | |
| parent | c39a2f31e65f6931b6752e89c9566613e8993c34 (diff) | |
fix: correct build errors and clean up code
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 +} |
