Changeset 13e2096 for commands.c


Ignore:
Timestamp:
Nov 7, 2010, 2:26:33 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
cedbe9d
Parents:
bc14adc
git-author:
David Benjamin <davidben@mit.edu> (11/07/10 00:50:19)
git-committer:
David Benjamin <davidben@mit.edu> (11/07/10 14:26:33)
Message:
Remove the echochar hack in owl_command_edit_cancel

owl_function_start_password passes a NULL history, so there
is no need for this. While we're at it, explicitly check for NULL
history in places. While owl_history_* already checks, it's a bit
sketchy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rdf4ccc0 r13e2096  
    27112711  owl_function_makemsg("Command cancelled.");
    27122712
    2713   if(owl_editwin_get_echochar(e) == 0) {
    2714     hist=owl_editwin_get_history(e);
     2713  hist = owl_editwin_get_history(e);
     2714  if (hist) {
    27152715    owl_history_store(hist, owl_editwin_get_text(e));
    27162716    owl_history_reset(hist);
     
    27262726
    27272727  hist=owl_editwin_get_history(e);
     2728  if (!hist)
     2729    return;
    27282730  if (!owl_history_is_touched(hist)) {
    27292731    owl_history_store(hist, owl_editwin_get_text(e));
     
    27452747
    27462748  hist=owl_editwin_get_history(e);
     2749  if (!hist)
     2750    return;
    27472751  ptr=owl_history_get_next(hist);
    27482752  if (ptr) {
Note: See TracChangeset for help on using the changeset viewer.