daboide Commit
Revision 760
Date: 2007-01-22 04:45:09 -0800 (Mon, 22 Jan 2007)
Author: Ed
Changed:
U trunk/Editor.py
Log:
Added a call to ensureLineVisible() to the onFunctionPop() method. Previously,
if the selected function was hidden due to code folding, the function remained
hidded. Now if you select a folding-hidden function from the popup, the code
will be unfolded enough to make it visible.
Diff:
Modified: trunk/Editor.py
===================================================================
--- trunk/Editor.py 2007-01-22 05:44:11 UTC (rev 759)
+++ trunk/Editor.py 2007-01-22 12:45:09 UTC (rev 760)
@@ -342,6 +342,7 @@
newLine = ed.getLineFromPosition(pos)
if newLine > currLine:
ed.moveToEnd()
+ ed.ensureLineVisible(newLine)
ed.LineNumber = newLine
nextLinePos = ed.getPositionFromLine(newLine+1)
ed.SelectionPosition = (pos, nextLinePos-1)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev