mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
fix: text selection bug (#1664)
This commit is contained in:
parent
15e830410f
commit
7950ae1462
1 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ func renderText(
|
|||
switch casted := message.(type) {
|
||||
case opencode.AssistantMessage:
|
||||
ts = time.UnixMilli(int64(casted.Time.Created))
|
||||
content = util.ToMarkdown(text, width+2, t.Background())
|
||||
content = util.ToMarkdown(text, width, t.Background())
|
||||
case opencode.UserMessage:
|
||||
ts = time.UnixMilli(int64(casted.Time.Created))
|
||||
base := styles.NewStyle().Foreground(t.Text()).Background(backgroundColor)
|
||||
|
|
@ -302,7 +302,7 @@ func renderText(
|
|||
return renderContentBlock(
|
||||
app,
|
||||
content,
|
||||
width+2,
|
||||
width,
|
||||
WithNoBorder(),
|
||||
WithBackgroundColor(t.Background()),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue