Changeset 1c01cdf7 for commands.c
- Timestamp:
- Jun 25, 2011, 2:29:50 AM (13 years ago)
- Parents:
- 8b293ea (diff), 2bc6bb16 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rd427f08 r1c01cdf7 2632 2632 ptr = skiptokens(buff, 1); 2633 2633 hist = owl_global_get_cmd_history(&g); 2634 owl_history_store(hist, ptr); 2635 owl_history_reset(hist); 2634 owl_history_store(hist, ptr, false); 2636 2635 /* owl_function_makemsg("History '%s' stored successfully", ptr+1); */ 2637 2636 return NULL; … … 2655 2654 2656 2655 hist = owl_global_get_cmd_history(&g); 2657 owl_history_store(hist, ptr); 2658 owl_history_reset(hist); 2656 owl_history_store(hist, ptr, false); 2659 2657 return owl_function_command(ptr); 2660 2658 } … … 2739 2737 2740 2738 hist = owl_editwin_get_history(e); 2741 if (hist) { 2742 owl_history_store(hist, owl_editwin_get_text(e)); 2743 owl_history_reset(hist); 2744 } 2739 if (hist) 2740 owl_history_store(hist, owl_editwin_get_text(e), false); 2745 2741 2746 2742 owl_global_pop_context(&g); … … 2755 2751 if (!hist) 2756 2752 return; 2757 if (!owl_history_is_touched(hist)) { 2758 owl_history_store(hist, owl_editwin_get_text(e)); 2759 owl_history_set_partial(hist); 2760 } 2753 if (!owl_history_is_touched(hist)) 2754 owl_history_store(hist, owl_editwin_get_text(e), true); 2761 2755 ptr=owl_history_get_prev(hist); 2762 2756 if (ptr) { … … 2796 2790 owl_history *hist=owl_editwin_get_history(e); 2797 2791 2798 if (hist) { 2799 owl_history_store(hist, owl_editwin_get_text(e)); 2800 owl_history_reset(hist); 2801 } 2792 if (hist) 2793 owl_history_store(hist, owl_editwin_get_text(e), false); 2802 2794 2803 2795 /* Take a reference to the editwin, so that it survives the pop
Note: See TracChangeset
for help on using the changeset viewer.