Archived Beta Discussions > SlickEdit 2019 v24 Beta Discussion

B4: Python dynamic surround and auto-list select issue


This issue occurs with a clean config.

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

--- Code: ---#!/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)

    # 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")

--- End code ---

Reproduced, I'll take a look at it.

This will be fixed in the next build.


[0] Message Index

Go to full version