Changeset 83a079a
- Timestamp:
- Jun 25, 2011, 3:24:36 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- ad37b39
- Parents:
- 9923144
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 02:54:44)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 03:24:36)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rd427f08 r83a079a 2633 2633 hist = owl_global_get_cmd_history(&g); 2634 2634 owl_history_store(hist, ptr); 2635 owl_history_reset(hist);2636 2635 /* owl_function_makemsg("History '%s' stored successfully", ptr+1); */ 2637 2636 return NULL; … … 2656 2655 hist = owl_global_get_cmd_history(&g); 2657 2656 owl_history_store(hist, ptr); 2658 owl_history_reset(hist);2659 2657 return owl_function_command(ptr); 2660 2658 } … … 2739 2737 2740 2738 hist = owl_editwin_get_history(e); 2741 if (hist) {2739 if (hist) 2742 2740 owl_history_store(hist, owl_editwin_get_text(e)); 2743 owl_history_reset(hist);2744 }2745 2741 2746 2742 owl_global_pop_context(&g); … … 2796 2792 owl_history *hist=owl_editwin_get_history(e); 2797 2793 2798 if (hist) {2794 if (hist) 2799 2795 owl_history_store(hist, owl_editwin_get_text(e)); 2800 owl_history_reset(hist);2801 }2802 2796 2803 2797 /* Take a reference to the editwin, so that it survives the pop -
functions.c
r8b293ea r83a079a 1842 1842 owl_history *hist = owl_global_get_cmd_history(&g); 1843 1843 owl_history_store(hist, buff); 1844 owl_history_reset(hist);1845 1844 owl_function_command_norv(buff); 1846 1845 } else { -
history.c
r9923144 r83a079a 49 49 } 50 50 51 owl_history_reset(h); 52 51 53 /* check if the line is the same as the last */ 52 54 if (owl_list_get_size(&(h->hist))>0) {
Note: See TracChangeset
for help on using the changeset viewer.