Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

multline block scrolling #134

Closed
aresnick opened this Issue · 4 comments

2 participants

@aresnick

I'm sure I'm missing something here, but I was wondering why scrolling up through indentation breaks everything? In particular, it seems like this should never happen:
In [1]: for i in range(4):
...: print i
...:

...:

0
1
2
3

In [2]: for i in range(4):
    print i
------> print(i)
------------------------------------------------------------
IndentationError: expected an indented block (<ipython console>, line 2)

Thanks!

@aresnick

Note that In [2] is created by hitting up. I'm running Ubuntu 9.10 and IPython 0.9.1

@takluyver
Owner

Cannot replicate in 0.10 or trunk.

@takluyver takluyver closed this
@aresnick

I'm now on a Mac OS X with 0.10.1 and the problems seems to be fixed (though the display of indentation leaves something to be desired. . .the "print i" line does not appear indented, even though it is.

@takluyver
Owner

I don't think there's much we can do about the display - all the text comes from readline, and we don't get a chance to insert our prompt into it. In 0.11, you get individual lines by pressing up, so you press enter in between and get the ...: continuation prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.