Changeset 8679


Ignore:
Timestamp:
03/02/05 01:14:09 (17 years ago)
Author:
piso
Message:

isInComment(): call repaint() if parseBuffer() returns true.

File:
1 edited

Legend:

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

    r8633 r8679  
    33 *
    44 * Copyright (C) 1998-2005 Peter Graves
    5  * $Id: LispMode.java,v 1.91 2005-02-24 00:42:38 piso Exp $
     5 * $Id: LispMode.java,v 1.92 2005-03-02 01:14:09 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    315315    public boolean isInComment(Buffer buffer, Position pos)
    316316    {
    317         if (buffer.needsParsing())
    318             buffer.getFormatter().parseBuffer();
     317        if (buffer.needsParsing()) {
     318            if (buffer.getFormatter().parseBuffer())
     319                // Always call repaint() if parseBuffer() returns true!
     320                buffer.repaint();
     321        }
    319322        final Line line = pos.getLine();
    320323        final int offset = pos.getOffset();
Note: See TracChangeset for help on using the changeset viewer.