SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2019 v24 Beta Discussion => Topic started by: rowbearto on September 24, 2019, 07:29:53 PM

Title: B4: Python dynamic surround and auto-list select issue
Post by: rowbearto on September 24, 2019, 07:29:53 PM
This issue occurs with a clean config.

Look for "REPRODUCE" in the code snippet below for how to reproduce this issue.

Code: [Select]
#!/usr/bin/env python
class MyClass(object):
    def __init__(self, field1, field2):
        self.field1 = field1
        self.field2 = field2

def myFunction(arg1, arg2):
    classobj = MyClass(arg1, arg2)

    # REPRODUCE
    # in the line just above the print below, type:
    #    "if classobj" and dot '.'
    # Then press down arrow to select field1
    # Notice how print gets included in the in the surround
    # and that it does not get indented

    print("To be indented by dynamic surround")
    print("Second print statement")
Title: Re: B4: Python dynamic surround and auto-list select issue
Post by: patrick on September 24, 2019, 07:51:56 PM
Reproduced, I'll take a look at it.
Title: Re: B4: Python dynamic surround and auto-list select issue
Post by: patrick on September 25, 2019, 02:57:02 PM
This will be fixed in the next build.