Skip to content

Commit 7950ae1

Browse files
authored
fix: text selection bug (sst#1664)
1 parent 15e8304 commit 7950ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tui/internal/components/chat/message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func renderText(
219219
switch casted := message.(type) {
220220
case opencode.AssistantMessage:
221221
ts = time.UnixMilli(int64(casted.Time.Created))
222-
content = util.ToMarkdown(text, width+2, t.Background())
222+
content = util.ToMarkdown(text, width, t.Background())
223223
case opencode.UserMessage:
224224
ts = time.UnixMilli(int64(casted.Time.Created))
225225
base := styles.NewStyle().Foreground(t.Text()).Background(backgroundColor)
@@ -302,7 +302,7 @@ func renderText(
302302
return renderContentBlock(
303303
app,
304304
content,
305-
width+2,
305+
width,
306306
WithNoBorder(),
307307
WithBackgroundColor(t.Background()),
308308
)

0 commit comments

Comments
 (0)