Skip to content

Commit 792e6eb

Browse files
committed
fix: address golangci-lint warning S1029
1 parent 82a7331 commit 792e6eb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pkg/tui/components/messages/clipboard.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,9 @@ func (m *model) extractSelectedText() string {
116116
// stripped line (without borders) by tracking which runes correspond to
117117
// which visual columns
118118
visualToRune := make(map[int]int)
119-
plainRunes := []rune(plainLine)
120119
visualCol := 0
121120
lineRuneIdx := 0
122-
123-
for _, r := range plainRunes {
121+
for _, r := range plainLine {
124122
if !boxDrawingChars[r] {
125123
// This rune is kept in the stripped line
126124
visualToRune[visualCol] = lineRuneIdx

0 commit comments

Comments
 (0)