Changeset 4417

Show
Ignore:
Timestamp:
08/16/08 12:40:35 (3 months ago)
Author:
ed
Message:

Added code to maintain the selection position when loading an updated file from disk. Previously the selection always went to the beginning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/Editor.py

    r4341 r4417  
    370370            ed = pg.editor 
    371371            if not ed.isChanged() and ed.checkForDiskUpdate(): 
     372                selpos = ed.SelectionPosition 
    372373                ed.openFile(ed._fileName) 
     374                ed.SelectionPosition = selpos 
    373375 
    374376