We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a7331 commit 792e6ebCopy full SHA for 792e6eb
1 file changed
pkg/tui/components/messages/clipboard.go
@@ -116,11 +116,9 @@ func (m *model) extractSelectedText() string {
116
// stripped line (without borders) by tracking which runes correspond to
117
// which visual columns
118
visualToRune := make(map[int]int)
119
- plainRunes := []rune(plainLine)
120
visualCol := 0
121
lineRuneIdx := 0
122
-
123
- for _, r := range plainRunes {
+ for _, r := range plainLine {
124
if !boxDrawingChars[r] {
125
// This rune is kept in the stripped line
126
visualToRune[visualCol] = lineRuneIdx
0 commit comments