Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multline block scrolling #134

Closed
aresnick opened this issue Jul 10, 2010 · 4 comments
Closed

multline block scrolling #134

aresnick opened this issue Jul 10, 2010 · 4 comments
Milestone

Comments

@aresnick
Copy link

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
Copy link
Author

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

@takluyver
Copy link
Member

Cannot replicate in 0.10 or trunk.

@aresnick
Copy link
Author

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
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants