We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d147255 + 4d12b15 commit 63e3866Copy full SHA for 63e3866
pymode/rope.py
@@ -576,7 +576,7 @@ def get_refactor(ctx):
576
_, offset1 = env.get_offset_params(cursor1)
577
_, offset2 = env.get_offset_params(cursor2)
578
return extract.ExtractMethod(
579
- ctx.project, ctx.resource, offset1, offset2)
+ ctx.project, ctx.resource, offset1, offset2 + 1)
580
581
582
class ExtractVariableRefactoring(Refactoring):
@@ -600,7 +600,7 @@ def get_refactor(ctx):
600
601
602
return extract.ExtractVariable(
603
604
605
606
class InlineRefactoring(Refactoring):
0 commit comments