summaryrefslogtreecommitdiff
path: root/doPlayback.go
diff options
context:
space:
mode:
authorCastor Regex <[email protected]>2025-08-25 10:15:39 -0500
committerJeff Carr <[email protected]>2025-08-25 10:15:39 -0500
commit0b2ec9ce15cf17f12c6457396a9579d943115d67 (patch)
tree1f64f1f424496a930ee8fa2698fdecc19b36005e /doPlayback.go
parentc39a2f31e65f6931b6752e89c9566613e8993c34 (diff)
fix: correct build errors and clean up code
Diffstat (limited to 'doPlayback.go')
-rw-r--r--doPlayback.go4
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
+}