pasteKey builds the bracketed-paste KeyMsg bubbletea emits on paste. Paste=true is the flag Update keys off of.
(s string)
| 20 | // pasteKey builds the bracketed-paste KeyMsg bubbletea emits on paste. |
| 21 | // Paste=true is the flag Update keys off of. |
| 22 | func pasteKey(s string) tea.KeyMsg { |
| 23 | return tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune(s), Paste: true} |
| 24 | } |
| 25 | |
| 26 | // makePaste returns a string with exactly n lines (n-1 newlines). |
| 27 | func makePaste(n int) string { |
no outgoing calls
no test coverage detected