Changeset 12555


Ignore:
Timestamp:
Aug 8, 2009, 4:35:01 AM (10 years ago)
Author:
rme
Message:

Put back use of cache in move-hemlock-mark-to-absolute-position. Flip
around use of NSTextStorageEdited{Characters,Attributes} in
textstorage-note-insertion-at-position.

File:
1 edited

Legend:

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

    r12548 r12555  
    394394  ;; TODO: figure out if updating the cache matters, and if not, use hi:move-to-absolute-position.
    395395  (let* ((hi::*current-buffer* (buffer-cache-buffer cache)))
    396     (hi::move-to-absolute-position mark abspos)
    397     #+rme-deletion
     396    ;;(hi::move-to-absolute-position mark abspos)
     397    ;;#+rme-deletion
    398398    (multiple-value-bind (line idx) (update-line-cache-for-index cache abspos)
    399399      #+debug
     
    541541(defun textstorage-note-insertion-at-position (self pos n)
    542542  (ns:with-ns-range (r pos 0)
    543     (#/edited:range:changeInLength: self #$NSTextStorageEditedAttributes r n)
     543    (#/edited:range:changeInLength: self #$NSTextStorageEditedCharacters r n)
    544544    (setf (ns:ns-range-length r) n)
    545     (#/edited:range:changeInLength: self #$NSTextStorageEditedCharacters r 0)))
     545    (#/edited:range:changeInLength: self #$NSTextStorageEditedAttributes r 0)))
    546546
    547547
Note: See TracChangeset for help on using the changeset viewer.