This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188333 - Editor Code Collapse in Python doesn't work in all cases
Summary: Editor Code Collapse in Python doesn't work in all cases
Status: NEW
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-02 21:22 UTC by mattofak
Modified: 2010-07-02 21:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mattofak 2010-07-02 21:22:00 UTC
When you have python code that is nested, ie: when you have functions inside of classes, collapsing the inner functions will 'collapse too far' with the next function/class/etc name ending up on the same line that you just collapsed.

Take for example the following class
class cls:
	def foo(self):
		pass
	def bar(self):
		pass

if you were to collapse foo, the editor collapses it like so:
class cls:
	def food(self):{...} def bar(self):
		pass