- Timestamp:
- Nov 5, 2003, 10:48:32 AM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- cb78880
- Parents:
- 3c7d007a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
history.c
r3c7d007a r5a9f6fe 53 53 size=owl_list_get_size(&(h->hist)); 54 54 55 /* if repeats are disallowed, check if the line is present already */56 if (!h->repeats) {57 for (i=0; i<size; i++) {58 if (!strcmp(line, owl_list_get_element(&(h->hist), i))) return;59 }60 }61 62 55 /* if partial is set, remove the first entry first */ 63 56 if (h->partial) { 64 57 owl_list_remove_element(&(h->hist), 0); 58 } 59 60 /* if repeats are disallowed, check if the line is the same as the last */ 61 if (owl_list_get_size(&(h->hist))>0) { 62 if (!strcmp(line, owl_list_get_element(&(h->hist), 0))) return; 65 63 } 66 64
Note: See TracChangeset
for help on using the changeset viewer.