Changeset 43744ce
- Timestamp:
- Jun 25, 2011, 3:24:36 AM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 9923144
- Parents:
- 8b293ea
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 03:07:54)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 03:24:36)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rd427f08 r43744ce 65 65 owl_history_init(&(g->msghist)); 66 66 owl_history_init(&(g->cmdhist)); 67 owl_history_set_norepeats(&(g->cmdhist));68 67 g->nextmsgid=0; 69 68 -
history.c
rd4927a7 r43744ce 7 7 h->touched=0; /* whether we've gone into history */ 8 8 h->partial=0; /* is the 0th element is partially composed? */ 9 h->repeats=1; /* by default we'll allow repeat entries */10 }11 12 void owl_history_set_norepeats(owl_history *h)13 {14 h->repeats=0;15 9 } 16 10 … … 57 51 } 58 52 59 /* if repeats are disallowed,check if the line is the same as the last */53 /* check if the line is the same as the last */ 60 54 if (owl_list_get_size(&(h->hist))>0) { 61 55 if (!strcmp(line, owl_list_get_element(&(h->hist), 0))) return; -
owl.h
rd427f08 r43744ce 459 459 int touched; 460 460 int partial; 461 int repeats;462 461 } owl_history; 463 462
Note: See TracChangeset
for help on using the changeset viewer.