We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89fbd72 commit 82a7331Copy full SHA for 82a7331
1 file changed
pkg/tui/components/messages/clipboard.go
@@ -165,7 +165,7 @@ func (m *model) extractSelectedText() string {
165
166
// findClosestRuneIndex finds the rune index for a given visual column,
167
// or the closest next rune if the exact column doesn't exist
168
-func findClosestRuneIndex(visualToRune map[int]int, visualCol int, maxRunes int) int {
+func findClosestRuneIndex(visualToRune map[int]int, visualCol, maxRunes int) int {
169
// Try exact match first
170
if runeIdx, ok := visualToRune[visualCol]; ok {
171
return runeIdx
0 commit comments