Backport PR #10264 on branch 5.x #10275

Merged
merged 1 commit into from Feb 9, 2017

Conversation

Projects
None yet
2 participants
@meeseeksdev

meeseeksdev bot commented Feb 9, 2017

Backport PR #10264: Indent on new line by looking at the text before the cursor.

that would allow edit like the following to insert the right amount of
space on the newline (| is the cursor)

class Bar:
    def __init__(self):|<enter>
        self.filed=0

Instead of inserting a blank line with 0 space.

Closes 9283


takluyver can you have a look ?

Backport PR #10264: Indent on new line by looking at the text before …
…the cursor.

that would allow edit like the following to insert the right amount of
space on the newline (`|` is the cursor)

    class Bar:
        def __init__(self):|<enter>
            self.filed=0

Instead of inserting a blank line with 0 space.

Closes  9283

---

 takluyver can you have a look ?

@meeseeksdev meeseeksdev bot added this to the 5.3 milestone Feb 9, 2017

@Carreau Carreau merged commit 6011b49 into 5.x Feb 9, 2017

4 checks passed

codecov/patch 0% of diff hit (target 0%)
Details
codecov/project 66% (-0.03%) compared to b819394
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@Carreau Carreau added the backported label Feb 9, 2017

@Carreau Carreau deleted the auto-backport-of-pr-10264 branch Feb 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment