Changeset 7c80ea42 for commands.c
- Timestamp:
- Jun 25, 2011, 2:23:06 AM (14 years ago)
- Children:
- 32c331d
- Parents:
- 35849fe
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/22/11 03:04:01)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/25/11 02:23:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r57a66fe r7c80ea42 2633 2633 ptr = skiptokens(buff, 1); 2634 2634 hist = owl_global_get_cmd_history(&g); 2635 owl_history_store(hist, ptr );2635 owl_history_store(hist, ptr, false); 2636 2636 /* owl_function_makemsg("History '%s' stored successfully", ptr+1); */ 2637 2637 return NULL; … … 2655 2655 2656 2656 hist = owl_global_get_cmd_history(&g); 2657 owl_history_store(hist, ptr );2657 owl_history_store(hist, ptr, false); 2658 2658 return owl_function_command(ptr); 2659 2659 } … … 2739 2739 hist = owl_editwin_get_history(e); 2740 2740 if (hist) 2741 owl_history_store(hist, owl_editwin_get_text(e) );2741 owl_history_store(hist, owl_editwin_get_text(e), false); 2742 2742 2743 2743 owl_global_pop_context(&g); … … 2752 2752 if (!hist) 2753 2753 return; 2754 if (!owl_history_is_touched(hist)) { 2755 owl_history_store(hist, owl_editwin_get_text(e)); 2756 owl_history_set_partial(hist); 2757 } 2754 if (!owl_history_is_touched(hist)) 2755 owl_history_store(hist, owl_editwin_get_text(e), true); 2758 2756 ptr=owl_history_get_prev(hist); 2759 2757 if (ptr) { … … 2794 2792 2795 2793 if (hist) 2796 owl_history_store(hist, owl_editwin_get_text(e) );2794 owl_history_store(hist, owl_editwin_get_text(e), false); 2797 2795 2798 2796 /* Take a reference to the editwin, so that it survives the pop
Note: See TracChangeset
for help on using the changeset viewer.