Changeset 57a66fe
- Timestamp:
- Jun 25, 2011, 2:12:43 AM (13 years ago)
- Children:
- 35849fe
- Parents:
- 7086a20
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 02:54:44)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 02:12:43)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r58f4fb2 r57a66fe 2634 2634 hist = owl_global_get_cmd_history(&g); 2635 2635 owl_history_store(hist, ptr); 2636 owl_history_reset(hist);2637 2636 /* owl_function_makemsg("History '%s' stored successfully", ptr+1); */ 2638 2637 return NULL; … … 2657 2656 hist = owl_global_get_cmd_history(&g); 2658 2657 owl_history_store(hist, ptr); 2659 owl_history_reset(hist);2660 2658 return owl_function_command(ptr); 2661 2659 } … … 2740 2738 2741 2739 hist = owl_editwin_get_history(e); 2742 if (hist) {2740 if (hist) 2743 2741 owl_history_store(hist, owl_editwin_get_text(e)); 2744 owl_history_reset(hist);2745 }2746 2742 2747 2743 owl_global_pop_context(&g); … … 2797 2793 owl_history *hist=owl_editwin_get_history(e); 2798 2794 2799 if (hist) {2795 if (hist) 2800 2796 owl_history_store(hist, owl_editwin_get_text(e)); 2801 owl_history_reset(hist);2802 }2803 2797 2804 2798 /* Take a reference to the editwin, so that it survives the pop -
functions.c
r58f4fb2 r57a66fe 1840 1840 owl_history *hist = owl_global_get_cmd_history(&g); 1841 1841 owl_history_store(hist, buff); 1842 owl_history_reset(hist);1843 1842 owl_function_command_norv(buff); 1844 1843 } else { -
history.c
r7086a20 r57a66fe 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.