Changeset 11313


Ignore:
Timestamp:
Nov 8, 2008, 2:30:49 AM (11 years ago)
Author:
rme
Message:

In REMOVE-PAREN-HIGHLIGHTING, don't lockFocus/unlockFocus.

There are times when lockFocus can fail, causing it to throw an exception.
This causes the editor window to become stuck and useless. I could be
mistaken, but I don't think that we need to lockFocus here at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/cocoa-editor.lisp

    r11293 r11313  
    10171017    (ns:with-ns-range  (char-range left (1+ (- right left)))
    10181018      (let* ((layout (#/layoutManager self)))
    1019         (#/lockFocus self)
    1020         (#/removeTemporaryAttribute:forCharacterRange: layout #&NSBackgroundColorAttributeName char-range)
    1021         (#/unlockFocus self)))))
     1019        (#/removeTemporaryAttribute:forCharacterRange: layout #&NSBackgroundColorAttributeName char-range)))))
    10221020
    10231021(defmethod disable-paren-highlight ((self hemlock-textstorage-text-view))
Note: See TracChangeset for help on using the changeset viewer.