Author Topic: B4: Python dynamic surround and auto-list select issue  (Read 185 times)

rowbearto

  • Senior Community Member
  • Posts: 1481
  • Hero Points: 112
B4: Python dynamic surround and auto-list select issue
« 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")

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1135
  • Hero Points: 107
Re: B4: Python dynamic surround and auto-list select issue
« Reply #1 on: September 24, 2019, 07:51:56 pm »
Reproduced, I'll take a look at it.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1135
  • Hero Points: 107
Re: B4: Python dynamic surround and auto-list select issue
« Reply #2 on: September 25, 2019, 02:57:02 pm »
This will be fixed in the next build.