| 208 | } |
| 209 | |
| 210 | static void updateTextEntries(TextEditorState *state) { |
| 211 | TextListEntry *entry = state->list.head; |
| 212 | int i; |
| 213 | for (i = 0; i < MAX_ENTRIES; i++) { |
| 214 | if (!entry) { |
| 215 | break; |
| 216 | } |
| 217 | |
| 218 | updateTextEntry(state, entry, i); |
| 219 | |
| 220 | entry = entry->next; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | |
| 225 | static CopyEntry *copy_line(TextEditorState *state, int line_number) { |
no test coverage detected