Changeset 186


Ignore:
Timestamp:
10/30/02 19:15:25 (20 years ago)
Author:
piso
Message:

escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/CommandInterpreter.java

    r167 r186  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: CommandInterpreter.java,v 1.4 2002-10-19 14:52:09 piso Exp $
     5 * $Id: CommandInterpreter.java,v 1.5 2002-10-30 19:15:25 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    215215            return;
    216216        String prompt = match.toString();
    217         if (text.equals(prompt) && editor.getDotOffset() == prompt.length())
     217        if (text.equals(prompt) && editor.getDotOffset() == prompt.length()) {
     218            if (isTransient())
     219                editor.escape();
    218220            return; // Nothing to do.
     221        }
    219222        CompoundEdit compoundEdit = beginCompoundEdit();
    220223        if (!text.equals(prompt)) {
Note: See TracChangeset for help on using the changeset viewer.