2016-03-31 09:47:49 |
T045T |
description |
If I try to indent a region of code that ends on the last line of a file (no trailing newline), py-indent-region hangs indefinitely (or at least, as long as I've been willing to wait so far, multiple minutes).
Example code:
asd = 1
if True:
print('foo')
Aborting py-indent-region with Ctrl-G causes the buffer to change to
asd = 1
if True:
print('foo')
with the cursor at the beginning of the last line.
Trying to undo this change hangs for about as long as py-indent-region did, then reverts the indentation. |
If I try to indent a region of code that ends on the last line of a file (no trailing newline), py-indent-region hangs indefinitely (or at least, as long as I've been willing to wait so far, multiple minutes).
Example code:
asd = 1
if True:
print('foo')
Aborting py-indent-region with Ctrl-G causes the buffer to change to
asd = 1
if True:
print('foo')
with the cursor at the beginning of the last line with the rest of the line selected.
Trying to undo this change hangs for about as long as py-indent-region did, then reverts the indentation. |
|