Skip to content

SimplyFold has issues recalculating the fold when adding lines to the end of a fold #116

@ghost

Description

Steps to reproduce:

  • Create python file as follows
class A:
    """Class Docstring
    """
    def __init__(self):
        """init docstring
        """
        pass

    def myprint(self):
        """Testing function docstring
        """
        print('Printed myprint')
        print('Printed myprint a second time')
  • Then, save it as test.py
  • Open the file again
  • Go to the last line
  • Add another line at the end of myprint
class A:
    """Class Docstring
    """
    def __init__(self):
        """init docstring
        """
        pass

    def myprint(self):
        """Testing function docstring
        """
        print('Printed myprint')
        print('Printed myprint a second time')
        print('another line')
  • Now, the last line is excluded from the fold
  • As an example, if you press zM, you get:

+-- 13 lines: class A: Class Docstring--------------------------------------------
print('another line')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions