Changeset 1c01cdf7 for commands.c


Ignore:
Timestamp:
Jun 25, 2011, 2:29:50 AM (13 years ago)
Author:
GitHub Merge Button <merge-button@github.com>
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.
Message:
Merge 2bc6bb1631398bd9cd2eaeee9ed91c2a15649b30 into 8b293ea82bfdae7cddf0e0665ef6eca1cc0df04d
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rd427f08 r1c01cdf7  
    26322632  ptr = skiptokens(buff, 1);
    26332633  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);
    26362635  /* owl_function_makemsg("History '%s' stored successfully", ptr+1); */
    26372636  return NULL;
     
    26552654
    26562655  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);
    26592657  return owl_function_command(ptr);
    26602658}
     
    27392737
    27402738  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);
    27452741
    27462742  owl_global_pop_context(&g);
     
    27552751  if (!hist)
    27562752    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);
    27612755  ptr=owl_history_get_prev(hist);
    27622756  if (ptr) {
     
    27962790  owl_history *hist=owl_editwin_get_history(e);
    27972791
    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);
    28022794
    28032795  /* Take a reference to the editwin, so that it survives the pop
Note: See TracChangeset for help on using the changeset viewer.