Changeset 8709


Ignore:
Timestamp:
03/05/05 01:44:34 (16 years ago)
Author:
piso
Message:

findTagAtDotInternal(): call findTag() if getExpressionAtDot() returns null.

File:
1 edited

Legend:

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

    r224 r8709  
    22 * TagCommands.java
    33 *
    4  * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: TagCommands.java,v 1.7 2002-11-10 01:03:35 piso Exp $
     4 * Copyright (C) 1998-2005 Peter Graves
     5 * $Id: TagCommands.java,v 1.8 2005-03-05 01:44:34 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    472472
    473473    private static void findTagAtDotInternal(Editor editor, boolean exact,
    474         boolean useOtherWindow)
    475     {
    476         editor.setWaitCursor();
     474                                             boolean useOtherWindow)
     475    {
    477476        Expression expr = editor.getMode().getExpressionAtDot(editor, exact);
    478477        if (expr != null) {
     478            editor.setWaitCursor();
    479479            boolean succeeded = findTag(editor, expr, useOtherWindow);
    480480            if (!succeeded && editor.getModeId() == C_MODE) {
     
    489489            if (!succeeded)
    490490                editor.status("Tag \"" + expr.getName() + "\" not found");
    491         }
    492         editor.setDefaultCursor();
     491            editor.setDefaultCursor();
     492        } else
     493            findTag();
    493494    }
    494495}
Note: See TracChangeset for help on using the changeset viewer.