Changeset 4917


Ignore:
Timestamp:
11/30/03 00:19:57 (18 years ago)
Author:
piso
Message:

electricBraceInternal()

File:
1 edited

Legend:

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

    r4734 r4917  
    33 *
    44 * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: Editor.java,v 1.118 2003-11-14 13:32:57 piso Exp $
     5 * $Id: Editor.java,v 1.119 2003-11-30 00:19:57 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    39223922        if (!checkReadOnly())
    39233923            return;
    3924         if (getDotLine().isBlank()) {
    3925             CompoundEdit compoundEdit = beginCompoundEdit();
     3924        CompoundEdit compoundEdit = beginCompoundEdit();
     3925        if (getDotLine().isBlank() && mark == null) {
    39263926            addUndo(SimpleEdit.LINE_EDIT);
    39273927            getDotLine().setText("");
     
    39323932            if (buffer.getBooleanProperty(Property.AUTO_NEWLINE))
    39333933                newlineAndIndent();
    3934             endCompoundEdit(compoundEdit);
    3935         } else
     3934        } else {
    39363935            insertNormalChar(c);
     3936            indentLine();
     3937        }
     3938        endCompoundEdit(compoundEdit);
    39373939    }
    39383940
Note: See TracChangeset for help on using the changeset viewer.