dabo Commit
Revision 4417
Date: 2008-08-16 12:40:35 -0700 (Sat, 16 Aug 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4417
Changed:
U trunk/ide/Editor.py
Log:
Added code to maintain the selection position when loading an updated file from
disk. Previously the selection always went to the beginning.
Diff:
Modified: trunk/ide/Editor.py
===================================================================
--- trunk/ide/Editor.py 2008-08-16 19:34:41 UTC (rev 4416)
+++ trunk/ide/Editor.py 2008-08-16 19:40:35 UTC (rev 4417)
@@ -369,7 +369,9 @@
for pg in self.pgfEditor.Pages:
ed = pg.editor
if not ed.isChanged() and ed.checkForDiskUpdate():
+ selpos = ed.SelectionPosition
ed.openFile(ed._fileName)
+ ed.SelectionPosition = selpos
def onLexSelect(self, evt):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]