Changeset 6e400cc


Ignore:
Timestamp:
Feb 13, 2009, 1:33:02 PM (16 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5008e51
Parents:
23e1110
git-author:
Nelson Elhage <nelhage@mit.edu> (02/13/09 13:31:09)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/13/09 13:33:02)
Message:
Never save passwords in the command history.

Previously, if you started entering a password and then cancelled it
(using e.g. C-g), whatever you had entered got saved in the edit
history.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rf34dd65 r6e400cc  
    26502650  owl_function_makemsg("Command cancelled.");
    26512651
    2652   hist=owl_editwin_get_history(e);
    2653   owl_history_store(hist, owl_editwin_get_text(e));
    2654   owl_history_reset(hist);
     2652  if(e->echochar == 0) {
     2653    hist=owl_editwin_get_history(e);
     2654    owl_history_store(hist, owl_editwin_get_text(e));
     2655    owl_history_reset(hist);
     2656  }
    26552657
    26562658  owl_editwin_fullclear(e);
Note: See TracChangeset for help on using the changeset viewer.