(s string)
| 177 | } |
| 178 | |
| 179 | func SplitLines(s string) []string { |
| 180 | var lines []string |
| 181 | if strings.Count(s, "\n") == 0 { |
| 182 | return append(lines, s) |
| 183 | } |
| 184 | |
| 185 | reader := strings.NewReader(s) |
| 186 | sc := bufio.NewScanner(reader) |
| 187 | |
| 188 | for sc.Scan() { |
| 189 | lines = append(lines, sc.Text()) |
| 190 | } |
| 191 | return lines |
| 192 | } |
| 193 | |
| 194 | func GetScrollDownMaximumForSelection(m *TuiModel) int { |
| 195 | max := 0 |
no outgoing calls
no test coverage detected